diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_disk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index b8bbdbd..5ef957d 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -265,7 +265,8 @@ main (int argc, char **argv) | |||
265 | (fsp.fsu_blocks + tmpfsp.fsu_blocks); /* Size of a block. */ | 265 | (fsp.fsu_blocks + tmpfsp.fsu_blocks); /* Size of a block. */ |
266 | fsp.fsu_blocks += tmpfsp.fsu_blocks; /* Total blocks. */ | 266 | fsp.fsu_blocks += tmpfsp.fsu_blocks; /* Total blocks. */ |
267 | fsp.fsu_bfree += tmpfsp.fsu_bfree; /* Free blocks available to superuser. */ | 267 | fsp.fsu_bfree += tmpfsp.fsu_bfree; /* Free blocks available to superuser. */ |
268 | fsp.fsu_bavail += tmpfsp.fsu_bavail; /* Free blocks available to non-superuser. */ | 268 | /* Gnulib workaround - see comment about it a few lines below */ |
269 | fsp.fsu_bavail += (tmpfsp.fsu_bavail > tmpfsp.fsu_bfree ? 0 : tmpfsp.fsu_bavail); /* Free blocks available to non-superuser. */ | ||
269 | fsp.fsu_files += tmpfsp.fsu_files; /* Total file nodes. */ | 270 | fsp.fsu_files += tmpfsp.fsu_files; /* Total file nodes. */ |
270 | fsp.fsu_ffree += tmpfsp.fsu_ffree; /* Free file nodes. */ | 271 | fsp.fsu_ffree += tmpfsp.fsu_ffree; /* Free file nodes. */ |
271 | 272 | ||