aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-05-22 15:27:29 +0100
committerChristopher Baines <mail@cbaines.net>2023-05-22 15:27:29 +0100
commit61f0b5de0ad06d393576540dfb77460616aaed40 (patch)
treea8cb3f2d315a89fe1f9b6c0ec85a507df6df7986
parent4072d56305129ddcc81f1a4968ceabd3af73a066 (diff)
downloadbuild-coordinator-61f0b5de0ad06d393576540dfb77460616aaed40.tar
build-coordinator-61f0b5de0ad06d393576540dfb77460616aaed40.tar.gz
Fix not updating about uploads based on time
-rw-r--r--guix-build-coordinator/agent.scm4
1 files 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)