diff options
-rw-r--r-- | plugins/check_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index ecde4e59..1778b613 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -340,7 +340,7 @@ main (int argc, char **argv) | |||
340 | warning_high_tide = path->dtotal_units - path->freespace_units->warning->end; | 340 | warning_high_tide = path->dtotal_units - path->freespace_units->warning->end; |
341 | } | 341 | } |
342 | if (path->freespace_percent->warning != NULL) { | 342 | if (path->freespace_percent->warning != NULL) { |
343 | warning_high_tide = llabs( min( (double) warning_high_tide, (1.0 - path->freespace_percent->warning->end / 100 * path->dtotal_units) )); | 343 | warning_high_tide = llabs( min( (double) warning_high_tide, (double) (1.0 - path->freespace_percent->warning->end/100)* path->dtotal_units )); |
344 | } | 344 | } |
345 | if (path->freespace_units->critical != NULL) { | 345 | if (path->freespace_units->critical != NULL) { |
346 | critical_high_tide = path->dtotal_units - path->freespace_units->critical->end; | 346 | critical_high_tide = path->dtotal_units - path->freespace_units->critical->end; |