diff options
Diffstat (limited to 'web/attachments/92703-check_disk.patch')
-rw-r--r-- | web/attachments/92703-check_disk.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/attachments/92703-check_disk.patch b/web/attachments/92703-check_disk.patch new file mode 100644 index 0000000..920b56e --- /dev/null +++ b/web/attachments/92703-check_disk.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- check_disk.c.orig 2004-07-02 09:50:32.000000000 -0600 | ||
2 | +++ check_disk.c 2004-07-02 15:02:59.000000000 -0600 | ||
3 | @@ -191,7 +191,7 @@ | ||
4 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; | ||
5 | asprintf (&perf, "%s %s", perf, | ||
6 | perfdata ((!strcmp(file_system, "none") || display_mntp) ? me->me_devname : me->me_mountdir, | ||
7 | - fsp.fsu_bavail*fsp.fsu_blocksize/mult, units, | ||
8 | + psize-(fsp.fsu_bavail*fsp.fsu_blocksize/mult), units, | ||
9 | TRUE, min ((uintmax_t)psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0)*psize)), | ||
10 | TRUE, min ((uintmax_t)psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0)*psize)), | ||
11 | TRUE, 0, | ||