Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPLrYEQK_=e95oPthOdHap3E9+eBPDYeaRkkvu_-s_2uFRnyDA@mail.gmail.com>
Date: Mon, 18 Jun 2012 20:39:51 +0200
From: Daniel Cegiełka <daniel.cegielka@...il.com>
To: owl-dev@...ts.openwall.com
Subject: Re: procps-3.2.8

In procps-3.2.5-suse-top-cpus.diff:

    switch (c) {
       case '1':
+	 if ((Screen_rows < (Cpu_tot+4)) && (Cpu_tot > 1))
+		show_msg(err_num_cpus);
+	 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;


but the new version of procps has a similar solution:

   switch (c) {
      case '1':
         if (Cpu_tot+7 > Screen_rows && CHKw(Curwin, View_CPUSUM)) {
            show_msg(err_num_cpus);
            break;
         }
#ifdef WARN_NOT_SMP
         if (Cpu_tot > 1) TOGw(Curwin, View_CPUSUM);
         else show_msg(err_smp);
#else

I understand that I leave as it is in the new code, right?

Daniel

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.