diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-21 09:22:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 09:22:33 +0200 |
commit | d5d0b50e89ee600b6a605344aad004c60b88994d (patch) | |
tree | 1ef0975b2a059daa7b8552aaf6371b3320ef477b /plugins/check_disk.c | |
parent | ab493d5515bd6dd8f844eb673b783479074263f8 (diff) | |
parent | 220455a11e8f1dd3a86ac4725cf0c799c8e3b21b (diff) | |
download | monitoring-plugins-d5d0b50e89ee600b6a605344aad004c60b88994d.tar.gz |
Merge branch 'master' into compiler_warning_part_3
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 39dc6cd2..05e55022 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -131,9 +131,6 @@ bool stat_path (struct parameter_list *p); | |||
131 | void get_stats (struct parameter_list *p, struct fs_usage *fsp); | 131 | void get_stats (struct parameter_list *p, struct fs_usage *fsp); |
132 | void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); | 132 | void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); |
133 | 133 | ||
134 | double w_dfp = -1.0; | ||
135 | double c_dfp = -1.0; | ||
136 | char *path; | ||
137 | char *exclude_device; | 134 | char *exclude_device; |
138 | char *units; | 135 | char *units; |
139 | uintmax_t mult = 1024 * 1024; | 136 | uintmax_t mult = 1024 * 1024; |
@@ -889,7 +886,7 @@ process_arguments (int argc, char **argv) | |||
889 | if (crit_usedspace_percent == NULL && argc > c && is_intnonneg (argv[c])) | 886 | if (crit_usedspace_percent == NULL && argc > c && is_intnonneg (argv[c])) |
890 | crit_usedspace_percent = argv[c++]; | 887 | crit_usedspace_percent = argv[c++]; |
891 | 888 | ||
892 | if (argc > c && path == NULL) { | 889 | if (argc > c) { |
893 | se = np_add_parameter(&path_select_list, strdup(argv[c++])); | 890 | se = np_add_parameter(&path_select_list, strdup(argv[c++])); |
894 | path_selected = TRUE; | 891 | path_selected = TRUE; |
895 | set_all_thresholds(se); | 892 | set_all_thresholds(se); |