cvs commit: src/sys/kern kern_proc.c

Nate Lawson nate at root.org
Fri Apr 25 10:50:03 PDT 2003


On Fri, 25 Apr 2003, Dag-Erling Smorgrav wrote:
> Nate Lawson <nate at root.org> writes:
> > On Wed, 23 Apr 2003, Dag-Erling Smorgrav wrote:
> >> @@ -673,6 +673,8 @@
> >>  	}
> >>  	if ((p->p_sflag & PS_INMEM) && p->p_stats) {
> >>  		kp->ki_start = p->p_stats->p_start;
> >> +		if (kp->ki_start.tv_sec == 1)
> >> +			kp->ki_start = boottime;
> >>  		kp->ki_rusage = p->p_stats->p_ru;
> >>  		kp->ki_childtime.tv_sec = p->p_stats->p_cru.ru_utime.tv_sec +
> >>  		    p->p_stats->p_cru.ru_stime.tv_sec;
> >
> > I'm not sure how the above can compile since the types in assignment don't
> > match.
> 
> The preferred procedure is
> [witty rebuttal elided]

Sorry, I had thought boottime was an integer, not a timeval.  When trying
to review commits, I'll make mistakes.

-Nate



More information about the cvs-all mailing list