[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-kern
Subject:    Re: kvm_getproc2() returning "empty" data structures....
From:       "Greg A. Woods" <woods () weird ! com>
Date:       2003-08-30 17:39:52
[Download RAW message or body]

[ On Sunday, August 31, 2003 at 00:46:27 (+1000), Simon Burge wrote: ]
> Subject: Re: kvm_getproc2() returning "empty" data structures....
>
> On Fri, Aug 29, 2003 at 12:03:45PM -0400, Greg A. Woods wrote:
> 
> >   for (plast = &procs[cnt]; procs < plast; ++procs)
> >   {
> >     if (plast->p_stat == 0)
> >       continue;
> > 
> >     if (plast->p_stat == SZOMB)
> >       continue;
> 
> Testing the data pointed to by the "procs" pointer instead of the
> "plast" pointer should give substantially better results. :-)

Oh, ARGH!  I knew I should have re-written that whole loop way back when
I first integrated it instead of trying to patch my changes in.....

Thanks very much for lending me your sharp eyes so that I could see the
obvious!!!

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic