]> granicus.if.org Git - procps-ng/commitdiff
top: hint that Summary Area 'cached' is Mem (not Swap)
authorJim Warner <james.warner@comcast.net>
Fri, 9 Aug 2013 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 30 Aug 2013 12:08:25 +0000 (22:08 +1000)
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>
top/top_nls.c

index fa6969e531cf07ea7a11d975283ddf183cff6691..25c7f565a0e0c668fca2748001206f9d3ac6bbfe 100644 (file)
@@ -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"