diff options
Diffstat (limited to 'web/attachments/101069-check_swap.diff.txt')
-rw-r--r-- | web/attachments/101069-check_swap.diff.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web/attachments/101069-check_swap.diff.txt b/web/attachments/101069-check_swap.diff.txt new file mode 100644 index 0000000..24cfdad --- /dev/null +++ b/web/attachments/101069-check_swap.diff.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | 49c49 | ||
2 | < char tmp_status[MAX_INPUT_BUFFER]; | ||
3 | --- | ||
4 | > | ||
5 | 197c197 | ||
6 | < printf (_("total=%llu, free=%llu\n"), dsktotal, | ||
7 | dskfree); | ||
8 | --- | ||
9 | > printf (_("total=%d, free=%d\n"), dsktotal, dskf | ||
10 | ree); | ||
11 | 314,315c314,315 | ||
12 | < sprintf (tmp_status, _(" %d%% free (%llu MB out of %llu MB)"), | ||
13 | < (100 - percent_used), free_swap, | ||
14 | total_swap); | ||
15 | --- | ||
16 | > asprintf (&tmp_status, _(" %d%% free (%llu MB out of %llu MB)"), | ||
17 | > (100 - percent_used), free_swap, | ||
18 | total_swap); | ||