495de5dd2a
Revert, see https://bugzilla.opensuse.org/show_bug.cgi?id=1198266 OBS-URL: https://build.opensuse.org/request/show/969331 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=127
20 lines
688 B
Diff
20 lines
688 B
Diff
---
|
|
top/top.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- top/top.c
|
|
+++ top/top.c 2018-04-04 12:09:16.087193018 +0000
|
|
@@ -2404,7 +2404,11 @@ static void zap_fieldstab (void) {
|
|
Cpu_pmax = 99.9;
|
|
if (Rc.mode_irixps && smp_num_cpus > 1 && !Thread_mode) {
|
|
Cpu_pmax = 100.0 * smp_num_cpus;
|
|
- if (smp_num_cpus > 10) {
|
|
+ if (smp_num_cpus > 1000) {
|
|
+ if (Cpu_pmax > 9999999.0) Cpu_pmax = 9999999.0;
|
|
+ } else if (smp_num_cpus > 100) {
|
|
+ if (Cpu_pmax > 999999.0) Cpu_pmax = 999999.0;
|
|
+ } else if (smp_num_cpus > 10) {
|
|
if (Cpu_pmax > 99999.0) Cpu_pmax = 99999.0;
|
|
} else {
|
|
if (Cpu_pmax > 999.9) Cpu_pmax = 999.9;
|