summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Ethgen <Klaus@Ethgen.de>2015-10-27 23:38:47 (GMT)
committerJan Wagner <waja@cyconet.org>2015-10-27 23:39:24 (GMT)
commit23436a18516e66469aeb4d81329d62ee4bfa7a51 (patch)
tree1cfccbd5aa89ac7e3813cca632d839bedff863ec
parent5e7cdfd08c2feaba9a48857646fb0297748b395f (diff)
downloadmonitoring-plugins-23436a1.tar.gz
Fixing the stuff that is broken on btrfsrefs/pull/1388/head
(Closes #1357)
-rw-r--r--plugins/check_disk.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 874a0ee..b338684 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -1038,10 +1038,7 @@ get_stats (struct parameter_list *p, struct fs_usage *fsp) {
1038 1038
1039void 1039void
1040get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { 1040get_path_stats (struct parameter_list *p, struct fs_usage *fsp) {
1041 /* 2007-12-08 - Workaround for Gnulib reporting insanely high available 1041 p->available = fsp->fsu_bavail;
1042 * space on BSD (the actual value should be negative but fsp->fsu_bavail
1043 * is unsigned) */
1044 p->available = fsp->fsu_bavail > fsp->fsu_bfree ? 0 : fsp->fsu_bavail;
1045 p->available_to_root = fsp->fsu_bfree; 1042 p->available_to_root = fsp->fsu_bfree;
1046 p->used = fsp->fsu_blocks - fsp->fsu_bfree; 1043 p->used = fsp->fsu_blocks - fsp->fsu_bfree;
1047 if (freespace_ignore_reserved) { 1044 if (freespace_ignore_reserved) {