summaryrefslogtreecommitdiffstats
path: root/web/attachments/101069-check_swap.diff.txt
blob: 24cfdad09394bc2fec4aa4a27ff8de9a8cccaacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
49c49
< char tmp_status[MAX_INPUT_BUFFER];
---
>
197c197
<                               printf (_("total=%llu, free=%llu\n"), dsktotal,
dskfree);
---
>                               printf (_("total=%d, free=%d\n"), dsktotal, dskf
ree);
314,315c314,315
<       sprintf (tmp_status, _(" %d%% free (%llu MB out of %llu MB)"),
<                                               (100 - percent_used), free_swap,
 total_swap);
---
>       asprintf (&tmp_status, _(" %d%% free (%llu MB out of %llu MB)"),
>                                               (100 - percent_used), free_swap,
 total_swap);