summaryrefslogtreecommitdiffstats
path: root/web/attachments/101069-check_swap.diff.txt
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/101069-check_swap.diff.txt')
-rw-r--r--web/attachments/101069-check_swap.diff.txt18
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 @@
149c49
2< char tmp_status[MAX_INPUT_BUFFER];
3---
4>
5197c197
6< printf (_("total=%llu, free=%llu\n"), dsktotal,
7dskfree);
8---
9> printf (_("total=%d, free=%d\n"), dsktotal, dskf
10ree);
11314,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);