summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2013-08-09 00:00:00 -0500
committerCraig Small <csmall@enc.com.au>2013-08-30 22:08:25 +1000
commit739effd90701d5d327624cd833d20c7f35981613 (patch)
tree6e31cea8192f532e328de7bde8df473c32c36a1e
parent764e27a4ddab3941239bba83fb6e69eeebce5982 (diff)
downloadprocps-ng-739effd90701d5d327624cd833d20c7f35981613.tar.gz
top: hint that Summary Area 'cached' is Mem (not Swap)
This patch just provides a visual clue to separate the values reported for cached Memory from other values on the Swapped line (which is being shared due to space). Reference(s): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718670 Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--top/top_nls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/top_nls.c b/top/top_nls.c
index fa6969e..25c7f56 100644
--- a/top/top_nls.c
+++ b/top/top_nls.c
@@ -618,7 +618,7 @@ static void build_uniq_nlstab (void) {
. words: total, used, free, buffers, cached */
Uniq_nlstab[MEMORY_lines_fmt] = _(""
"%s Mem: ~3 %9.9s~2total,~3 %9.9s~2used,~3 %9.9s~2free,~3 %9.9s~2buffers~3\n"
- "%s Swap:~3 %9.9s~2total,~3 %9.9s~2used,~3 %9.9s~2free,~3 %9.9s~2cached~3\n");
+ "%s Swap:~3 %9.9s~2total,~3 %9.9s~2used,~3 %9.9s~2free.~3 %9.9s~2cached Mem~3\n");
Uniq_nlstab[INSP_hdrsels_fmt] = _(""
"Inspection~2 Pause at: pid ~1%d~6 running ~1%s~6 as user ~1%s~6\n"