From 61f0b5de0ad06d393576540dfb77460616aaed40 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 22 May 2023 15:27:29 +0100 Subject: Fix not updating about uploads based on time --- guix-build-coordinator/agent.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix-build-coordinator/agent.scm b/guix-build-coordinator/agent.scm index 30af393..d5c20ac 100644 --- a/guix-build-coordinator/agent.scm +++ b/guix-build-coordinator/agent.scm @@ -180,7 +180,7 @@ (when (or (> bytes-now-sent (+ last-progress-update-bytes-sent 10000000)) - (and (> (- (time-second (current-time))) + (and (> (time-second (current-time)) (+ last-progress-update-time 15)))) (set! last-progress-update-bytes-sent bytes-now-sent) @@ -205,7 +205,7 @@ bytes-now-hashed) (when (or (> bytes-now-hashed (+ last-progress-update-bytes-hashed 10000000)) - (and (> (- (time-second (current-time))) + (and (> (time-second (current-time)) (+ last-progress-update-time 15)))) (set! last-progress-update-bytes-hashed bytes-now-hashed) -- cgit v1.2.3