tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: top on machines with more than 9 CPUs
On Fri, Jun 25, 2010 at 06:59:04PM +0700, Robert Elz wrote:
> Date: Thu, 24 Jun 2010 16:53:07 +0200
> From: Ignatios Souvatzis <is%NetBSD.org@localhost>
> Message-ID: <20100624145307.GM12982%beverly.kleinbus.org@localhost>
>
> | const char *short_tag = !multi || ncpu <= 1 ? "CPU: " : "CPU%0*d";
>
> While I never understood why it should be so, I thought that the printf
> %0 stuff was supposed to be obsolete, and one was supposed to use the
> precision field instead. (I'm also not sure I would rely upon %0*
> working on all implementations.)
Old dog, new tricks. Hm... that would be CPU%*.*d" and be called with
two times the width? Will check tomorrow, or the day after.
-is
--
seal your e-mail: http://www.gnupg.org/
Home |
Main Index |
Thread Index |
Old Index