top: whack a label & branch in 'summary_show' function
Catch-up with newlib, original commit message follows: ------------------------------------------------------ If there are zero numa nodes then the View_CPUNOD flag cannot possibly be set. So it was unnecessary to check both the numa total and View_CPUNOD in 'summary_show'. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
7a30fd0f51
commit
3b69883c07
@ -6039,8 +6039,6 @@ static void summary_show (void) {
|
|||||||
|
|
||||||
cpus_refresh();
|
cpus_refresh();
|
||||||
|
|
||||||
if (!Numa_node_tot) goto numa_nope;
|
|
||||||
|
|
||||||
if (CHKw(w, View_CPUNOD)) {
|
if (CHKw(w, View_CPUNOD)) {
|
||||||
if (Numa_node_sel < 0) {
|
if (Numa_node_sel < 0) {
|
||||||
// display the 1st /proc/stat line, then the nodes (if room)
|
// display the 1st /proc/stat line, then the nodes (if room)
|
||||||
@ -6074,11 +6072,11 @@ static void summary_show (void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
|
||||||
numa_nope:
|
} else if (CHKw(w, View_CPUSUM)) {
|
||||||
if (CHKw(w, View_CPUSUM)) {
|
|
||||||
// display just the 1st /proc/stat line
|
// display just the 1st /proc/stat line
|
||||||
Msg_row += sum_tics(&Cpu_tics[smp_num_cpus], N_txt(WORD_allcpus_txt), 1);
|
Msg_row += sum_tics(&Cpu_tics[smp_num_cpus], N_txt(WORD_allcpus_txt), 1);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// display each cpu's states separately, screen height permitting...
|
// display each cpu's states separately, screen height permitting...
|
||||||
if (w->rc.combine_cpus) {
|
if (w->rc.combine_cpus) {
|
||||||
|
Loading…
Reference in New Issue
Block a user