]> granicus.if.org Git - procps-ng/commitdiff
top: reposition call to cpus_refresh() for consistency
authorJim Warner <james.warner@comcast.net>
Sun, 22 Aug 2021 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 24 Aug 2021 10:52:10 +0000 (20:52 +1000)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index d1abbc56c09bae2cc24a57e2731bad21ffac739e..d538db5b703e0796c6f7901c7940fd28ae27bd95 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -5634,8 +5634,6 @@ static void summary_show (void) {
          , Pids_reap->counts->stopped, Pids_reap->counts->zombied));
       Msg_row += 1;
 
-      cpus_refresh();
-
       if (CHKw(w, View_CPUNOD)) {
          if (Numa_node_sel < 0) {
 numa_oops:
@@ -6280,6 +6278,7 @@ static void frame_make (void) {
 
    sysinfo_refresh(0);
    procs_refresh();
+   cpus_refresh();
 
    Tree_idx = Pseudo_row = Msg_row = scrlins = 0;
    summary_show();