diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-11-05 09:59:52 +0000 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2010-11-05 09:59:52 +0000 |
commit | 32c53e86b6215d42f50a1e20d3df37924375e5b6 (patch) | |
tree | 2c044d2f14d40d3286f45f3160545e4810a5a50e | |
parent | 515b5d0bc71e278ddedda96b441a92de47006c4d (diff) |
Fix minor bug with uptime formatting
-rwxr-xr-x | archey3 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |