mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fix logic error with -e switch where result not set (Daniel Austin - 1102012)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@1082 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
e80519b91b
commit
cb17e8af43
1 changed files with 2 additions and 1 deletions
|
|
@ -118,6 +118,8 @@ main (int argc, char **argv)
|
|||
if (strcmp (file_system, "none") == 0)
|
||||
strncpy (file_system, mntp, MAX_INPUT_BUFFER-1);
|
||||
|
||||
result = max_state (result, disk_result);
|
||||
|
||||
if (disk_result==STATE_OK && erronly && !verbose)
|
||||
continue;
|
||||
|
||||
|
|
@ -125,7 +127,6 @@ main (int argc, char **argv)
|
|||
asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output,
|
||||
free_disk, 100 - usp, display_mntp ? mntp : file_system);
|
||||
|
||||
result = max_state (result, disk_result);
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue