[monitoring-plugins] Somehow the value vanished from a struct??
RincewindsHat
git at monitoring-plugins.org
Sat Sep 17 03:00:13 CEST 2022
Module: monitoring-plugins
Branch: gnulib_2022
Commit: f656baa886c72083fe5768b8d2c48daad86b7d1e
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Sat Sep 17 02:58:49 2022 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f656baa
Somehow the value vanished from a struct??
---
plugins/check_disk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 7018c6f..ed43808 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -1056,7 +1056,7 @@ get_path_stats (struct parameter_list *p, struct fs_usage *fsp) {
p->dfree_units = p->available*fsp->fsu_blocksize/mult;
p->dtotal_units = p->total*fsp->fsu_blocksize/mult;
/* Free file nodes. Not sure the workaround is required, but in case...*/
- p->inodes_free = fsp->fsu_favail > fsp->fsu_ffree ? 0 : fsp->fsu_favail;
+ p->inodes_free = fsp->fsu_ffree;
p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */
p->inodes_used = fsp->fsu_files - fsp->fsu_ffree;
if (freespace_ignore_reserved) {
More information about the Commits
mailing list