Date: Thu, 24 Apr 2003 14:24:16 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Dag-Erling Smorgrav <des@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c Message-ID: <2049.1051187056@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 24 Apr 2003 05:12:06 PDT." <200304241212.h3OCC6Ej048588@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200304241212.h3OCC6Ej048588@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2049.1051187056>