cvs commit: src/sys/kern kern_proc.c

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Apr 24 05:24:21 PDT 2003


In message <200304241212.h3OCC6Ej048588 at repoman.freebsd.org>, Dag-Erling Smorgr
av writes:
>des         2003/04/24 05:12:06 PDT
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/kern             kern_proc.c 
>  Log:
>  It seems that 1 was not a magic value as I thought, but a coincidence.
>  Instead of applying the adjustment to processes with a start time of 1,
>  apply it to all processes with a start time of less than 3600.
>  
>  None of this would be necessary if the start times were recorded in ticks
>  instead of seconds and microseconds.

The correct solution is to record the start time as "uptime" and add
"boottime" to that value before presentation.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-all mailing list