--- Jeong Bae Kim <[EMAIL PROTECTED]> wrote: > Hi Martin, > > Here is the diff -u output against Mike Hom's latest file (dated > 5-24-2004). > > > > @@ -506,7 +506,14 @@ > */ > for (i = 0; cpu_id > 0; i++) > { > - if (p_online(i, P_STATUS) == -1 && errno == EINVAL) continue; > + /* Submitted by JB Kim <[EMAIL PROTECTED]> > + * also skip the loop if CPU is "off-line" > + */ > + int n = p_online(i, P_STATUS); > + if (n == 1) continue; > + > + if (n == -1 && errno == EINVAL) continue; > + > sprintf(ks_name,"cpu_stat%d",i); > ki = i; > cpu_id--; > > > Thanks for the quick response.
No problem. The fix looks simple enough. I just cannot test it, because I lack the big iron boxes to play with. > CPUs with legs? scary! =P > Most of them have lots of legs :-) Martin ===== ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de