diff options
Diffstat (limited to 'web/attachments/399715-check_disk.patch')
-rw-r--r-- | web/attachments/399715-check_disk.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/web/attachments/399715-check_disk.patch b/web/attachments/399715-check_disk.patch new file mode 100644 index 0000000..7f8a4f3 --- /dev/null +++ b/web/attachments/399715-check_disk.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | 161a162 | ||
2 | > char *flag_header; | ||
3 | 222d222 | ||
4 | < | ||
5 | 357d356 | ||
6 | < | ||
7 | 391,393c390,397 | ||
8 | < | ||
9 | < asprintf (&output, "%s %s %.0f %s (%.0f%%", | ||
10 | < output, | ||
11 | --- | ||
12 | > | ||
13 | > if(disk_result && verbose >= 1) { | ||
14 | > asprintf(&flag_header, " %s [", state_text (disk_result)); | ||
15 | > } else { | ||
16 | > asprintf(&flag_header, ""); | ||
17 | > } | ||
18 | > asprintf (&output, "%s%s %s %.0f %s (%.0f%%", | ||
19 | > output, flag_header, | ||
20 | 399c403 | ||
21 | < asprintf(&output, "%s inode=-);", output); | ||
22 | --- | ||
23 | > asprintf(&output, "%s inode=-)%s;", output, (disk_result ? "]" : "")); | ||
24 | 401c405 | ||
25 | < asprintf(&output, "%s inode=%.0f%%);", output, dfree_inodes_percent ); | ||
26 | --- | ||
27 | > asprintf(&output, "%s inode=%.0f%%)%s;", output, dfree_inodes_percent, ((disk_result && verbose >= 1) ? "]" : "")); | ||
28 | 403c407 | ||
29 | < | ||
30 | --- | ||
31 | > free(flag_header); | ||