summaryrefslogtreecommitdiffstats
path: root/web/attachments/399715-check_disk.patch
blob: 7f8a4f3a25d18703941ef805de02f1dbb05cdcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
161a162
>   char *flag_header;
222d222
< 
357d356
< 
391,393c390,397
< 
<       asprintf (&output, "%s %s %.0f %s (%.0f%%",
<                 output,
---
>       
>       if(disk_result && verbose >= 1) {
>          asprintf(&flag_header, " %s [", state_text (disk_result));
>       } else {
>          asprintf(&flag_header, "");
>       }
>       asprintf (&output, "%s%s %s %.0f %s (%.0f%%",
>                 output, flag_header,
399c403
<         asprintf(&output, "%s inode=-);", output);
---
>         asprintf(&output, "%s inode=-)%s;", output, (disk_result ? "]" : ""));
401c405
<         asprintf(&output, "%s inode=%.0f%%);", output, dfree_inodes_percent );
---
>         asprintf(&output, "%s inode=%.0f%%)%s;", output, dfree_inodes_percent, ((disk_result && verbose >= 1) ? "]" : ""));
403c407
< 
---
>       free(flag_header);