Skip to content

Commit

Permalink
change comparison to include equality
Browse files Browse the repository at this point in the history
  • Loading branch information
uno20001 committed Apr 17, 2020
1 parent 075575e commit ea621f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ EXPORT void init(struct metafile *m, int argc, char *argv[])
} else {
#ifdef _SC_NPROCESSORS_ONLN
m->threads = sysconf(_SC_NPROCESSORS_ONLN);
if (m->threads < 0)
if (m->threads <= 0)
#endif
m->threads = 2; /* some sane default */
}
Expand Down

0 comments on commit ea621f6

Please sign in to comment.