summaryrefslogtreecommitdiffstats
path: root/web/attachments/187009-check_disk.diff
blob: bc9870284fbfd7b5d89045727eb2b1ca5c06a66f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
60a61,63
> /* If nonzero, display percents as % of space used rather than free */
> static int show_used_pct = 0;
> 
160c163
<   double dused_inodes_percent;
---
>   double dused_inodes_percent, dfree_inodes_percent;
249a253
>       dfree_inodes_percent = 100 - dused_inodes_percent;
278,286d281
<       
< 
< 
< 
<       /* Moved this computation up here so we can add it
<        * to perf */
<       inode_space_pct = (1 - dused_inodes_percent) * 100;
< 
< 
304c299
<                   dfree_pct);
---
>                   (show_used_pct ? dused_pct : dfree_pct));
308c303
<           asprintf(&output, "%s inode=%.0f%%);", output, (1 - dused_inodes_percent) * 100);
---
>           asprintf(&output, "%s inode=%.0f%%);", output, (show_used_pct ? dused_inodes_percent : dfree_inodes_percent) );
385a381
>     {"used", no_argument, 0, 'f'},
404c400
<     c = getopt_long (argc, argv, "+?VqhveCt:c:w:K:W:u:p:x:X:mklME", longopts, &option);
---
>     c = getopt_long (argc, argv, "+?VqhveCt:c:w:K:W:u:p:x:X:mklMEU", longopts, &option);
548a545,547
>     case 'U': /* Display output percentage as % free */
>       show_used_pct = 1;
>       break;
720a720,721
>   printf (" %s\n", "-U --used");
>   printf ("    %s\n", _("Display output percentage as % free"));
737c738
<   printf ("[-m] [-e] [-W limit] [-K limit] [-v] [-q] [-E]\n");
---
>   printf ("[-m] [-e] [-W limit] [-K limit] [-v] [-q] [-E] [-U]\n");