aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-12-24 10:49:40 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-24 10:49:40 +0000
commit5e3ce858dcba23a333470ee2785088f3741d4560 (patch)
treeb09855846ba04810c1a45dec772b5ac6243c64bb /scripts
parent3c2388f0c1cd54444b30e995a2d7ae0d9475b7ec (diff)
downloadbuild-coordinator-5e3ce858dcba23a333470ee2785088f3741d4560.tar
build-coordinator-5e3ce858dcba23a333470ee2785088f3741d4560.tar.gz
Remove unnecessary nproc usage
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-build-coordinator-agent.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in
index 96c49c1..e8a2f0c 100644
--- a/scripts/guix-build-coordinator-agent.in
+++ b/scripts/guix-build-coordinator-agent.in
@@ -24,6 +24,7 @@
(use-modules (srfi srfi-1)
(srfi srfi-37)
+ (ice-9 threads)
(ice-9 textual-ports)
((guix config) #:prefix guix-config:)
(guix-build-coordinator utils)
@@ -97,7 +98,7 @@
(metrics-file
. "/var/lib/prometheus/node-exporter/guix-build-coordinator-agent.prom")
(max-1min-load-average
- . ,(max (- (get-available-processing-units) 1)
+ . ,(max (- (total-processor-count) 1)
1))))
(define (parse-options options defaults args)