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

index 9762e092e99725d14fdb969927ce17735cd2555c..a8a82c9e5707ee2765d7133c56df30818e3a6f8a 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -6037,8 +6037,6 @@ static void summary_show (void) {
          , Frame_stopped, Frame_zombied));
       Msg_row += 1;
 
-      cpus_refresh();
-
       if (CHKw(w, View_CPUNOD)) {
          if (Numa_node_sel < 0) {
             // display the 1st /proc/stat line, then the nodes (if room)
@@ -6687,6 +6685,7 @@ static void frame_make (void) {
 
    sysinfo_refresh(0);
    procs_refresh();
+   cpus_refresh();
 
    Tree_idx = Pseudo_row = Msg_row = scrlins = 0;
    summary_show();