2012-10-30 14:13:12 +01:00
|
|
|
--- top/top.c
|
2015-02-03 16:31:12 +01:00
|
|
|
+++ top/top.c 2015-01-27 15:25:34.329519296 +0000
|
|
|
|
@@ -2302,8 +2302,15 @@ static void zap_fieldstab (void) {
|
|
|
|
Fieldstab[EU_CPU].width = 5;
|
2014-05-20 18:01:01 +02:00
|
|
|
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) {
|
2012-10-30 14:13:12 +01:00
|
|
|
+ if (Cpu_pmax > 9999999.0) Cpu_pmax = 9999999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 8;
|
2014-05-20 18:01:01 +02:00
|
|
|
+ } else if (smp_num_cpus > 100) {
|
2012-10-30 14:13:12 +01:00
|
|
|
+ if (Cpu_pmax > 999999.0) Cpu_pmax = 999999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 7;
|
2014-05-20 18:01:01 +02:00
|
|
|
+ } else if (smp_num_cpus > 10) {
|
2012-10-30 14:13:12 +01:00
|
|
|
if (Cpu_pmax > 99999.0) Cpu_pmax = 99999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 6;
|
2012-10-30 14:13:12 +01:00
|
|
|
} else {
|
|
|
|
if (Cpu_pmax > 999.9) Cpu_pmax = 999.9;
|
|
|
|
}
|
2015-02-03 16:31:12 +01:00
|
|
|
@@ -2313,12 +2320,18 @@ static void zap_fieldstab (void) {
|
|
|
|
Fieldstab[EU_CPU].width = 4;
|
2014-05-20 18:01:01 +02:00
|
|
|
if (Rc.mode_irixps && smp_num_cpus > 1 && !Thread_mode) {
|
|
|
|
Cpu_pmax = 100.0 * smp_num_cpus;
|
|
|
|
+ if (smp_num_cpus > 1000) {
|
2012-10-30 14:13:12 +01:00
|
|
|
+ if (Cpu_pmax > 9999999.0) Cpu_pmax = 9999999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 7;
|
2014-05-20 18:01:01 +02:00
|
|
|
+ } else if (smp_num_cpus > 100) {
|
2012-10-30 14:13:12 +01:00
|
|
|
+ if (Cpu_pmax > 999999.0) Cpu_pmax = 999999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 6;
|
|
|
|
if (smp_num_cpus > 10) {
|
2012-10-30 14:13:12 +01:00
|
|
|
if (Cpu_pmax > 99999.0) Cpu_pmax = 99999.0;
|
2015-02-03 16:31:12 +01:00
|
|
|
+ Fieldstab[EU_CPU].width = 5;
|
2012-10-30 14:13:12 +01:00
|
|
|
} else {
|
|
|
|
if (Cpu_pmax > 999.9) Cpu_pmax = 999.9;
|
|
|
|
}
|
2015-02-03 16:31:12 +01:00
|
|
|
- Fieldstab[EU_CPU].width = 5;
|
2012-10-30 14:13:12 +01:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|