Skip to content

Commit

Permalink
Ensure we never benchmark less than two salts for "Many salts". (#3922)
Browse files Browse the repository at this point in the history
Closes #3912.
  • Loading branch information
magnumripper authored and solardiz committed May 11, 2019
1 parent 26f4688 commit 9966247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bench.c
Expand Up @@ -599,9 +599,9 @@ char *benchmark_format(struct fmt_main *format, int salts,
sig_timer_emu_tick();
#endif
salts_done++;
} while (benchmark_time &&
(((wait && salts_done < salts) ||
bench_running) && !event_abort));
} while (benchmark_time && (bench_running ||
(salts_done < (wait ? salts : MIN(salts, 2)))) &&
!event_abort);

#if defined (__MINGW32__) || defined (_MSC_VER)
end_real = clock();
Expand Down

0 comments on commit 9966247

Please sign in to comment.