Unverified Commit 315aff57 authored by doge's avatar doge Committed by GitHub
Browse files

fix +1 to -1 in printf

parent 38b892f8
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -100,7 +100,7 @@ void testproc() { ...@@ -100,7 +100,7 @@ void testproc() {
if (pid == 0) { if (pid == 0) {
sinfo(&info); sinfo(&info);
if (info.nproc != nproc - 1) { if (info.nproc != nproc - 1) {
printf("sysinfotest: FAIL nproc is %d instead of %d\n", info.nproc, nproc + 1); printf("sysinfotest: FAIL nproc is %d instead of %d\n", info.nproc, nproc - 1);
exit(1); exit(1);
} }
exit(0); exit(0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment