File procps-3.2.8-manycpus.diff of Package procps

--- top.c
+++ top.c	2009-05-11 11:14:53.402401350 +0200
@@ -2489,21 +2489,21 @@ static void do_key (unsigned c)
    static const char err_num_cpus[] = "\aSorry, terminal is not big enough";
 #ifdef WARN_NOT_SMP
    // standardized 'smp' errors
-   static const char err_smp[] = "\aSorry, only 1 cpu detected";
+   static const char err_smp[] = "\aSorry, only one cpu detected";
 #endif
 
    switch (c) {
       case '1':
          if (Cpu_tot+7 > Screen_rows && CHKw(Curwin, View_CPUSUM)) {
             show_msg(err_num_cpus);
-            break;
-         }
+         } else {
 #ifdef WARN_NOT_SMP
          if (Cpu_tot > 1) TOGw(Curwin, View_CPUSUM);
          else show_msg(err_smp);
 #else
          TOGw(Curwin, View_CPUSUM);
 #endif
+	 }
          break;
 
       case 'a':
openSUSE Build Service is sponsored by