summaryrefslogtreecommitdiffstats
path: root/web/attachments/399715-check_disk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/399715-check_disk.patch')
-rw-r--r--web/attachments/399715-check_disk.patch31
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 @@
1161a162
2> char *flag_header;
3222d222
4<
5357d356
6<
7391,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,
20399c403
21< asprintf(&output, "%s inode=-);", output);
22---
23> asprintf(&output, "%s inode=-)%s;", output, (disk_result ? "]" : ""));
24401c405
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) ? "]" : ""));
28403c407
29<
30---
31> free(flag_header);