From owner-cvs-all@FreeBSD.ORG Thu Apr 24 05:24:20 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D88CC37B401; Thu, 24 Apr 2003 05:24:20 -0700 (PDT) Received: from critter.freebsd.dk (esplanaden.cybercity.dk [212.242.40.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A26943FAF; Thu, 24 Apr 2003 05:24:19 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h3OCOGRi002050; Thu, 24 Apr 2003 14:24:17 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Dag-Erling Smorgrav From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 24 Apr 2003 05:12:06 PDT." <200304241212.h3OCC6Ej048588@repoman.freebsd.org> Date: Thu, 24 Apr 2003 14:24:16 +0200 Message-ID: <2049.1051187056@critter.freebsd.dk> cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 12:24:21 -0000 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.