aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-11-27 21:35:18 +1300
committerDavid Phillips <david@sighup.nz>2017-11-27 21:35:18 +1300
commit6700b90d094c612e20ca0bed3afd4f8a26ed2be0 (patch)
tree1447f3f54c6c5347e89c958d898168ad1b0359ac
parent922a3aedb72c94298441f9b53a9bd8d5b731e5a7 (diff)
downloadsand-leek-6700b90d094c612e20ca0bed3afd4f8a26ed2be0.tar.xz
Fix off-by-one with >999 EH totals
-rw-r--r--sand-leek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sand-leek.c b/sand-leek.c
index edf64f1..871740f 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -337,7 +337,7 @@ monitor_progress(unsigned long volatile *khashes, int thread_count) {
iprintf_bare(COLOUR_ERASE);
iprintf("[%02d:%02d:%02d:%02d]: %.2f %s hashes%s. Now ~%lu kH/s (%.2f kH/s/thread). Maybe %ld %s%s %s\r",
days, hours, minutes, seconds,
- hashes_nice, hashes_nice_unit, (hashes_nice > 1000 ? " (!!)" : ""),
+ hashes_nice, hashes_nice_unit, (hashes_nice >= 1000 ? " (!!)" : ""),
total_khashes - last_total_khashes,
(double)(total_khashes - last_total_khashes) / thread_count,
labs(remaining), remaining_unit, (labs(remaining) == 1 ? "" : "s" ),