diff options
-rw-r--r-- | plugins/check_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 9a2f1742..d2546b93 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -118,6 +118,8 @@ main (int argc, char **argv) | |||
118 | if (strcmp (file_system, "none") == 0) | 118 | if (strcmp (file_system, "none") == 0) |
119 | strncpy (file_system, mntp, MAX_INPUT_BUFFER-1); | 119 | strncpy (file_system, mntp, MAX_INPUT_BUFFER-1); |
120 | 120 | ||
121 | result = max_state (result, disk_result); | ||
122 | |||
121 | if (disk_result==STATE_OK && erronly && !verbose) | 123 | if (disk_result==STATE_OK && erronly && !verbose) |
122 | continue; | 124 | continue; |
123 | 125 | ||
@@ -125,7 +127,6 @@ main (int argc, char **argv) | |||
125 | asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output, | 127 | asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output, |
126 | free_disk, 100 - usp, display_mntp ? mntp : file_system); | 128 | free_disk, 100 - usp, display_mntp ? mntp : file_system); |
127 | 129 | ||
128 | result = max_state (result, disk_result); | ||
129 | } | 130 | } |
130 | 131 | ||
131 | else { | 132 | else { |