summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2021-12-18 00:00:00 -0600
committerCraig Small <csmall@dropbear.xyz>2021-12-20 21:38:16 +1100
commit9b24a423b14ec6717c14a0b52624a5ee3c1e4f60 (patch)
tree4e1c65a843da66c088f34f48b902e7d1c1ae1c59
parent16145af66397db87d818fc1d172cce762a740c76 (diff)
downloadprocps-ng-9b24a423b14ec6717c14a0b52624a5ee3c1e4f60.tar.gz
top: touch up that code for proc mounted as subset=pid
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--top/top.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/top/top.c b/top/top.c
index 0b3a1d3..4a2ed90 100644
--- a/top/top.c
+++ b/top/top.c
@@ -5757,7 +5757,7 @@ static void summary_show (void) {
, Pids_reap->counts->stopped, Pids_reap->counts->zombied));
Msg_row += 1;
}
- goto restrict_end;
+ return;
}
// Display Uptime and Loadavg
@@ -5977,7 +5977,6 @@ numa_oops:
#undef memPARM
} // end: View_MEMORY
-restrict_end:
#undef isROOM
#undef anyFLG
} // end: summary_show
@@ -6088,12 +6087,12 @@ static const char *task_show (const WIN_t *q, int idx) {
break;
/* s_int, scale_pcnt with special handling */
case EU_CPU: // PIDS_TICS_ALL_DELTA
+ { float u = (float)rSv(EU_CPU, u_int);
+ int n = rSv(EU_THD, s_int);
if (Restrict_some) {
cp = justify_pad("?", W, Jn);
break;
}
- { float u = (float)rSv(EU_CPU, u_int);
- int n = rSv(EU_THD, s_int);
#ifndef TREE_VCPUOFF
#ifndef TREE_VWINALL
if (q == Curwin) // note: the following is NOT indented