Tim Kientzle <kientzle_at_acm.org> writes: > This has been discussed on this list several > times: those processes are all started > before the kernel has initialized the time. > > Because FreeBSD has to read the disk > before it can know whether the hardware clock > is in UTC or local time, it's hard to really > do much better than this. (I suppose you > could edit 'ps' to display such times > as '-'; that might be less misleading.) You guys have no imagination... Index: kern_proc.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_proc.c,v retrieving revision 1.179 diff -u -r1.179 kern_proc.c --- kern_proc.c 18 Apr 2003 20:17:05 -0000 1.179 +++ kern_proc.c 24 Apr 2003 01:01:37 -0000 _at__at_ -673,6 +673,8 _at__at_ } if ((p->p_sflag & PS_INMEM) && p->p_stats) { kp->ki_start = p->p_stats->p_start; + if (kp->ki_start == 0) + 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; Took me all of thirty seconds. DES -- Dag-Erling Smorgrav - des_at_ofug.orgReceived on Wed Apr 23 2003 - 16:02:31 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC