diff options
-rw-r--r-- | src/top/top.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/top/top.c b/src/top/top.c index 7a1bc5e..bf1fd0f 100644 --- a/src/top/top.c +++ b/src/top/top.c @@ -5727,6 +5727,9 @@ static void keys_summary (int ch) { if ((w->rc.double_up >= ADJOIN_limit) || ((w->rc.double_up >= Cpu_cnt))) w->rc.double_up = 0; + if ((w->rc.double_up > 1) + && (!w->rc.graph_cpus)) + w->rc.double_up = 0; OFFw(w, (View_CPUSUM | View_CPUNOD)); break; case 'C': @@ -5750,6 +5753,9 @@ static void keys_summary (int ch) { w->rc.graph_cpus = 0; OFFw(w, View_STATES); } + if ((w->rc.double_up > 1) + && (!w->rc.graph_cpus)) + w->rc.double_up = 0; break; default: // keep gcc happy break; |