mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
hopefully fix warning high tide with percentage
This commit is contained in:
parent
726a29a3ac
commit
1c0882def0
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ main (int argc, char **argv)
|
|||
warning_high_tide = path->dtotal_units - path->freespace_units->warning->end;
|
||||
}
|
||||
if (path->freespace_percent->warning != NULL) {
|
||||
warning_high_tide = llabs( min( (double) warning_high_tide, (1.0 - path->freespace_percent->warning->end / 100 * path->dtotal_units) ));
|
||||
warning_high_tide = llabs( min( (double) warning_high_tide, (double) (1.0 - path->freespace_percent->warning->end/100)* path->dtotal_units ));
|
||||
}
|
||||
if (path->freespace_units->critical != NULL) {
|
||||
critical_high_tide = path->dtotal_units - path->freespace_units->critical->end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue