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-07-24 19:35:11 +0200
commitf1085eae27f6356f913942a4023ac946f740bde7 (patch)
tree765247671bc81ea975586cdc8280923571578f2d
parent41f05159bb14d835c6007d5121bc15ab76c2f2bf (diff)
downloadmonitoring-plugins-f1085eae27f6356f913942a4023ac946f740bde7.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) {