]> granicus.if.org Git - procps-ng/commitdiff
top: add inspect entry 'type' to alternate status line
authorJim Warner <james.warner@comcast.net>
Thu, 6 Dec 2012 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Tue, 11 Dec 2012 11:54:25 +0000 (22:54 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 74490213cdc9993bb403636a765ba654b08ad3fa..a477091145935bece98af76188057aa842f42358 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -2724,7 +2724,7 @@ static int insp_view_choice (proc_t *obj) {
             insp_find_str(key, &curcol, &curlin);
             break;
          case '=':
-            snprintf(buf, sizeof(buf), "%s", Insp_sel->fmts);
+            snprintf(buf, sizeof(buf), "%s: %s", Insp_sel->type, Insp_sel->fmts);
             INSP_MKSL(1, buf);    // show an extended SL
             key = keyin(0);
             if (!key) return key; // oops, we got signaled