summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 142b9da)
raw | patch | inline | side by side (parent: 142b9da)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sun, 7 Jan 2007 07:14:04 +0000 (07:14 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sun, 7 Jan 2007 07:14:04 +0000 (07:14 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1564 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_disk.c | patch | blob | history |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index ac86f4d2a195e77637a09c2a512ae013c8d7dfc9..99a7201e5155050f476230ececc1c094cdbcbd11 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
double dfree_pct = -1, dused_pct = -1;
double dused_units, dfree_units, dtotal_units;
double dused_inodes_percent, dfree_inodes_percent;
- double warning_high_tide = UINT_MAX;
- double critical_high_tide = UINT_MAX;
+ double warning_high_tide;
+ double critical_high_tide;
int temp_result;
struct mount_entry *me;
Hack here. Trying to get warn/crit levels from freespace_(units|percent) for perf
data. Assumption that start=0. Roll on new syntax...
*/
+
+ /* *_high_tide must be reinitialized at each run */
+ warning_high_tide = UINT_MAX;
+ critical_high_tide = UINT_MAX;
+
if (path->freespace_units->warning != NULL) {
warning_high_tide = dtotal_units - path->freespace_units->warning->end;
}