diff options
author | Sven Nierlein <sven@nierlein.de> | 2021-08-24 07:05:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 07:05:01 (GMT) |
commit | e17c1e9ed95b8b9681dccd5a909ac5a02a04416c (patch) | |
tree | 9e638a390fcea8460a6373b119d1abace63efda8 /plugins/check_disk.c | |
parent | f1be271c3c492ae1af4674e3a60307b57a6c4539 (diff) | |
parent | 23436a18516e66469aeb4d81329d62ee4bfa7a51 (diff) | |
download | monitoring-plugins-e17c1e9ed95b8b9681dccd5a909ac5a02a04416c.tar.gz |
Merge pull request #1388 from waja/check_proc_consumption_1357
check_disk: Fixing the stuff that is broken on btrfs
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 844e625..a273519 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -1068,10 +1068,7 @@ get_stats (struct parameter_list *p, struct fs_usage *fsp) { | |||
1068 | 1068 | ||
1069 | void | 1069 | void |
1070 | get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { | 1070 | get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { |
1071 | /* 2007-12-08 - Workaround for Gnulib reporting insanely high available | 1071 | p->available = fsp->fsu_bavail; |
1072 | * space on BSD (the actual value should be negative but fsp->fsu_bavail | ||
1073 | * is unsigned) */ | ||
1074 | p->available = fsp->fsu_bavail > fsp->fsu_bfree ? 0 : fsp->fsu_bavail; | ||
1075 | p->available_to_root = fsp->fsu_bfree; | 1072 | p->available_to_root = fsp->fsu_bfree; |
1076 | p->used = fsp->fsu_blocks - fsp->fsu_bfree; | 1073 | p->used = fsp->fsu_blocks - fsp->fsu_bfree; |
1077 | if (freespace_ignore_reserved) { | 1074 | if (freespace_ignore_reserved) { |