aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-07-05 04:29:46 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-07-05 16:13:37 +0530
commit81a11883dc9807e87f8686889ad879b1fb64a4f6 (patch)
treeecd2561efefe95ea819f45d345255fc9b6957db0
parenta2daee843d93abd5cc15a6277b6a3e7118fe047a (diff)
downloadguix-81a11883dc9807e87f8686889ad879b1fb64a4f6.tar.gz
guix-81a11883dc9807e87f8686889ad879b1fb64a4f6.zip
weather: Print 0.0% correctly.
* guix/scripts/weather.scm (report-server-coverage): Report 0% coverage as 0.0%, not as .0%.
-rw-r--r--guix/scripts/weather.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/weather.scm b/guix/scripts/weather.scm
index 475d989357..3035ff6ca8 100644
--- a/guix/scripts/weather.scm
+++ b/guix/scripts/weather.scm
@@ -190,7 +190,7 @@ Return the coverage ratio, an exact number between 0 and 1."
narinfos))
(time (+ (time-second time)
(/ (time-nanosecond time) 1e9))))
- (format #t (G_ " ~2,1f% substitutes available (~h out of ~h)~%")
+ (format #t (G_ " ~,1f% substitutes available (~h out of ~h)~%")
(* 100. (/ obtained requested 1.))
obtained requested)
(let ((total (/ (reduce + 0 sizes) MiB)))