summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchey34
1 files changed, 2 insertions, 2 deletions
diff --git a/archey3 b/archey3
index ccd54c8..6437a44 100755
--- a/archey3
+++ b/archey3
@@ -254,8 +254,8 @@ class uptimeDisplay(display):
hour = int(fuptime / 3600)
fuptime = fuptime % 3600
minute = int(fuptime / 60)
- uptime = '{daystring}{hours}:{mins}'.format(
- daystring='{days} day{s}, '.format(days=day, s=int(day) > 1) if day else '',
+ uptime = '{daystring}{hours}:{mins:02d}'.format(
+ daystring='{days} day{s}, '.format(days=day, s='s' if day > 1 else '') if day else '',
hours = hour, mins = minute
)
return "Uptime", uptime