From 6700b90d094c612e20ca0bed3afd4f8a26ed2be0 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 27 Nov 2017 21:35:18 +1300 Subject: Fix off-by-one with >999 EH totals --- sand-leek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ), -- cgit v1.1