From owner-cvs-src@FreeBSD.ORG Fri Oct 21 19:59:31 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF52216A41F; Fri, 21 Oct 2005 19:59:31 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B5343D45; Fri, 21 Oct 2005 19:59:31 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j9LJxRnn010886; Fri, 21 Oct 2005 15:59:29 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <4359216B.68A42960@networx.ch> References: <30805.1129910750@critter.freebsd.dk> <0D10B55A-A82D-433F-81CA-A5A02B36DA75@xcllnt.net> <4359216B.68A42960@networx.ch> Date: Fri, 21 Oct 2005 15:59:27 -0400 To: Andre Oppermann , Marcel Moolenaar From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.1 Cc: src-committers@FreeBSD.org, Andre Oppermann , Bruce Evans , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, Poul-Henning Kamp Subject: Re: Timekeeping [Was: Re: cvs commit: src/usr.bin/vmstat vmstat.c src/usr.bin/w w.c] X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 19:59:31 -0000 At 7:12 PM +0200 10/21/05, Andre Oppermann wrote: >Marcel Moolenaar wrote: > > > > The question therefore is: which definition of uptime do we > > try to implement? > >The question is "up and running" since when? Since the last >interruption (suspend or ddb) or since the last initialization >of the kernel (boot or reboot)? IMO the latter minus the former >in SI seconds. For what it is worth, I think both of those measures might be useful for people to know. If both are to be available, I think I would call uptime "the time since the most-recent system initialization", and call the other value something like "waketime". I don't have a strong preference for the specific names to use, but I do think both values can be valuable. So pick one as uptime, and pick a new name for the second one, and add an option to the `uptime' command to report both values. IMO. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu