Module: check_mk
Branch: master
Commit: 29bf807ce01fecbbd876ee235cabfa7b405ab9f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=29bf807ce01fec…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Dec 21 10:41:06 2012 +0100
FIX: hr_fs: handle negative values in order to larger disks
---
checks/hr_fs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/hr_fs b/checks/hr_fs
index 1d07ebd..b451123 100644
--- a/checks/hr_fs
+++ b/checks/hr_fs
@@ -46,7 +46,7 @@ def check_hr_fs(item, params, info):
size = hrsize * unit_size
hrused = saveint(hrused)
if hrused < 0:
- hrsize = hrused+2**32
+ hrused = hrused+2**32
used = hrused * unit_size
size_mb = size / 1048576.0
used_mb = used / 1048576.0