weather: Print 0.0% correctly.
* guix/scripts/weather.scm (report-server-coverage): Report 0% coverage as 0.0%, not as .0%.
parent
a2daee843d
commit
81a11883dc
|
@ -190,7 +190,7 @@ Return the coverage ratio, an exact number between 0 and 1."
|
||||||
narinfos))
|
narinfos))
|
||||||
(time (+ (time-second time)
|
(time (+ (time-second time)
|
||||||
(/ (time-nanosecond time) 1e9))))
|
(/ (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.))
|
(* 100. (/ obtained requested 1.))
|
||||||
obtained requested)
|
obtained requested)
|
||||||
(let ((total (/ (reduce + 0 sizes) MiB)))
|
(let ((total (/ (reduce + 0 sizes) MiB)))
|
||||||
|
|
Reference in New Issue