aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sand-leek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 031a0bf..92ddfac 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -310,7 +310,7 @@ monitor_progress(unsigned long volatile *khashes, int thread_count) {
}
/* FIXME factor out */
- remaining_abs = abs(remaining);
+ remaining_abs = labs(remaining);
if (remaining_abs < 60) {
remaining_unit = "second";
} else if (remaining_abs < 60*60) {