diff options
-rw-r--r-- | plugins/check_disk.c | 4 |
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) { |