aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sand-leek.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 92ddfac..cdfcd3c 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -319,9 +319,12 @@ monitor_progress(unsigned long volatile *khashes, int thread_count) {
} else if (remaining_abs < 60*60*24) {
remaining = (remaining + 1800) / 3600;
remaining_unit = "hour";
- } else {
+ } else if (remaining_abs < 60*60*24*365.25) {
remaining = (remaining + 43200) / 86400;
remaining_unit = "day";
+ } else {
+ remaining = (remaining + (60*60*24*365.25)/2) / (60*60*24*365.25);
+ remaining_unit = "year";
}
iprintf("[%02d:%02d:%02d:%02d]: %.2f %s hashes%s. Now ~%lu kH/s (%.2f kH/s/thread). Maybe %ld %s%s left \r",