HCoop
/
jackhill
/
guix
/
guix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2daee8
)
weather: Print 0.0% correctly.
author
Arun Isaac
<arunisaac@systemreboot.net>
Sat, 4 Jul 2020 22:59:46 +0000
(
04:29
+0530)
committer
Arun Isaac
<arunisaac@systemreboot.net>
Sun, 5 Jul 2020 10:43:37 +0000
(16:13 +0530)
* guix/scripts/weather.scm (report-server-coverage): Report 0% coverage as
0.0%, not as .0%.
guix/scripts/weather.scm
patch
|
blob
|
blame
|
history
diff --git
a/guix/scripts/weather.scm
b/guix/scripts/weather.scm
index
475d989
..
3035ff6
100644
(file)
--- 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)))