diff options
author | Klaus Ethgen <Klaus@Ethgen.de> | 2015-10-28 00:38:47 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2015-10-28 00:39:24 +0100 |
commit | 23436a18516e66469aeb4d81329d62ee4bfa7a51 (patch) | |
tree | 1cfccbd5aa89ac7e3813cca632d839bedff863ec /plugins/check_disk.c | |
parent | 5e7cdfd08c2feaba9a48857646fb0297748b395f (diff) | |
download | monitoring-plugins-23436a18516e66469aeb4d81329d62ee4bfa7a51.tar.gz |
Fixing the stuff that is broken on btrfs
(Closes #1357)
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 874a0ee0..b3386842 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) { void get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { - /* 2007-12-08 - Workaround for Gnulib reporting insanely high available - * space on BSD (the actual value should be negative but fsp->fsu_bavail - * is unsigned) */ - p->available = fsp->fsu_bavail > fsp->fsu_bfree ? 0 : fsp->fsu_bavail; + p->available = fsp->fsu_bavail; p->available_to_root = fsp->fsu_bfree; p->used = fsp->fsu_blocks - fsp->fsu_bfree; if (freespace_ignore_reserved) { |