From 16edf0a9cd3a7ee230135f8ed301fc9e8c3c6f2c Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Thu, 16 Jul 2020 19:15:14 +0100 Subject: status: Show free disk space in MiB when it's < 1 GiB Showing free disk space as 0 when it drops below 1 GiB may be unncessarily alarming, so show it in units of MiB if that happens. The status dictionary already includes it in both units. --- templates/status.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/status.tpl b/templates/status.tpl index 277b4b8..ff572de 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -46,7 +46,13 @@

Maximum number of jobs: {{max_jobs}}.

-

Free disk space: {{disk_free_gib}} GiB.

+

Free disk space: +% if disk_free_gib: + {{disk_free_gib}} GiB. +% else: + {{disk_free_mib}} MiB. +% end +

Upstream Hosts

-- cgit v1.2.1