Module: check_mk
Branch: master
Commit: 79479d34c84ff67a047d91f9a389be81e4c72579
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=79479d34c84ff6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 27 15:44:25 2011 +0100
Fix MB/GB output (fraction part was zero)
---
ChangeLog | 1 +
modules/check_mk_base.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2f81b6b..9b5a82a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
Core, Setup, etc.:
* cmk -D: show ip address of host
* Fix SNMP inventory find snmp misc checks inspite of negative scan function
+ * Fix output of MB and GB values (fraction part was zero)
Checks & Agents:
* megaraid_ldisks: remove debug output
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index cb15778..6bfb6eb 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1033,7 +1033,7 @@ def savefloat(f):
# Takes bytes as integer and returns a string which represents the bytes in a
# more human readable form scaled to GB/MB/KB
-def get_bytes_human_readable(b, base=1024):
+def get_bytes_human_readable(b, base=1024.0):
# Handle negative bytes correctly
prefix = ''
if b < 0: