summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-11-17 01:16:17 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-08-23 17:06:16 +0200
commit4946838b597d9450de6206e3e149e728aa758b83 (patch)
tree729fe913c44cd3d6bb00e86e0385b57348073903
parent4257a38f44d134bd1dd8ffc3846065c5ae54da98 (diff)
downloadmonitoring-plugins-4946838.tar.gz
fix check_disk problems with gnulib update
-rw-r--r--plugins/check_disk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 66c5dd39..a023e899 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -1107,7 +1107,9 @@ get_path_stats (struct parameter_list *p, struct fs_usage *fsp) {
1107 p->dfree_units = p->available*fsp->fsu_blocksize/mult; 1107 p->dfree_units = p->available*fsp->fsu_blocksize/mult;
1108 p->dtotal_units = p->total*fsp->fsu_blocksize/mult; 1108 p->dtotal_units = p->total*fsp->fsu_blocksize/mult;
1109 /* Free file nodes. Not sure the workaround is required, but in case...*/ 1109 /* Free file nodes. Not sure the workaround is required, but in case...*/
1110 p->inodes_free = fsp->fsu_favail > fsp->fsu_ffree ? 0 : fsp->fsu_favail; 1110 /* p->inodes_free = fsp->fsu_favail > fsp->fsu_ffree ? 0 : fsp->fsu_favail; */
1111 /* did the above ever work correctly? */
1112 p->inodes_free = fsp->fsu_ffree;
1111 p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */ 1113 p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */
1112 p->inodes_used = fsp->fsu_files - fsp->fsu_ffree; 1114 p->inodes_used = fsp->fsu_files - fsp->fsu_ffree;
1113 if (freespace_ignore_reserved) { 1115 if (freespace_ignore_reserved) {