Module: check_mk
Branch: master
Commit: 272ee558964b408f2a2d82ef38a3bb1617dcde3b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=272ee558964b40…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Fri Jan 10 18:40:28 2014 +0100
Even nicer output of human readable age
---
modules/check_mk_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index b1142cf..196371a 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1546,7 +1546,7 @@ def get_age_human_readable(secs):
if mins < 120:
return "%d min" % mins
hours, mins = divmod(mins, 60)
- if hours < 12:
+ if hours < 12 and mins > 0:
return "%d hours, %d min" % (hours, mins)
elif hours < 48:
return "%d hours" % hours