summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-05 09:59:52 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-05 09:59:52 +0000
commit32c53e86b6215d42f50a1e20d3df37924375e5b6 (patch)
tree2c044d2f14d40d3286f45f3160545e4810a5a50e
parent515b5d0bc71e278ddedda96b441a92de47006c4d (diff)
Fix minor bug with uptime formatting
-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