Skip to content

Commit

Permalink
Tiny bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf committed Jul 23, 2014
1 parent 2ee3b29 commit 977dad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ int main(int argc, char *argv[]) {
if (num_processors < 1)
num_processors = 1;
if (!opt_n_threads)
opt_n_threads = num_processors - 1;
opt_n_threads = (num_processors == 1) ? num_processors : num_processors - 1;

#ifdef HAVE_SYSLOG_H
if (use_syslog)
Expand Down

0 comments on commit 977dad2

Please sign in to comment.