From owner-cvs-all@FreeBSD.ORG Thu Apr 24 17:18: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 3520737B401 for ; Thu, 24 Apr 2003 17:18:20 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0391543FCB for ; Thu, 24 Apr 2003 17:18:17 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 63769 invoked by uid 1000); 25 Apr 2003 00:18:18 -0000 Date: Thu, 24 Apr 2003 17:18:18 -0700 (PDT) From: Nate Lawson To: Dag-Erling Smorgrav In-Reply-To: <20030424033805.6B8AC37B4A3@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Fri, 25 Apr 2003 00:18:20 -0000 On Wed, 23 Apr 2003, Dag-Erling Smorgrav wrote: > When filling out a kinfo_proc structure, if we come across a process > whose p_stats->p_start has the magic value 1, replace it with boottime. > Some users were apparently confused by the fact that ps(1) reported a > start time in early 1970 for system processes. > > Revision Changes Path > 1.180 +2 -0 src/sys/kern/kern_proc.c > > @@ -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. -Nate