Module: check_mk
Branch: master
Commit: c10f920d28c2abaae67c71b455144bcf98d17e76
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c10f920d28c2ab…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jan 10 17:53:33 2012 +0100
FIX: Wrong variable name in get_filesize_human_readable
---
modules/check_mk_base.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index b7b4db0..3d889ff 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1062,9 +1062,9 @@ def get_filesize_human_readable(size):
if size < 4 * 1024 * 1024:
return str(size)
elif size < 4 * 1024 * 1024 * 1024:
- return "%.2fMB" % (float(s) / (1024 * 1024))
+ return "%.2fMB" % (float(size) / (1024 * 1024))
else:
- return "%.2fGB" % (float(s) / (1024 * 1024 * 1024))
+ return "%.2fGB" % (float(size) / (1024 * 1024 * 1024))
def get_nic_speed_human_readable(speed):