diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 01:30:50 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 01:30:50 +0100 |
commit | 880e57271d66b34240b58bdbeaf9d53a08958eb2 (patch) | |
tree | 73bbcd7f37ecadb6a117a9cd654df39e60e22180 /lib/utils_disk.c | |
parent | e480c2bf48e1e905310f10ffbf1ddb190bf2e107 (diff) | |
download | monitoring-plugins-880e57271d66b34240b58bdbeaf9d53a08958eb2.tar.gz |
lib: clang-format
Diffstat (limited to 'lib/utils_disk.c')
-rw-r--r-- | lib/utils_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils_disk.c b/lib/utils_disk.c index c87090e8..2b761f5e 100644 --- a/lib/utils_disk.c +++ b/lib/utils_disk.c | |||
@@ -180,7 +180,8 @@ void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount | |||
180 | if (!best_match) { | 180 | if (!best_match) { |
181 | for (me = mount_list; me; me = me->me_next) { | 181 | for (me = mount_list; me; me = me->me_next) { |
182 | size_t len = strlen(me->me_mountdir); | 182 | size_t len = strlen(me->me_mountdir); |
183 | if ((!exact && (best_match_len <= len && len <= name_len && (len == 1 || strncmp(me->me_mountdir, d->name, len) == 0))) || | 183 | if ((!exact && |
184 | (best_match_len <= len && len <= name_len && (len == 1 || strncmp(me->me_mountdir, d->name, len) == 0))) || | ||
184 | (exact && strcmp(me->me_mountdir, d->name) == 0)) { | 185 | (exact && strcmp(me->me_mountdir, d->name) == 0)) { |
185 | if (get_fs_usage(me->me_mountdir, me->me_devname, &fsp) >= 0) { | 186 | if (get_fs_usage(me->me_mountdir, me->me_devname, &fsp) >= 0) { |
186 | best_match = me; | 187 | best_match = me; |