From owner-cvs-all Mon Oct 4 5:53:35 1999 Delivered-To: cvs-all@freebsd.org Received: from camtech.net.au (goliath.camtech.net.au [203.5.73.2]) by hub.freebsd.org (Postfix) with SMTP id 63F6114F18; Mon, 4 Oct 1999 05:53:28 -0700 (PDT) (envelope-from matt@camtech.net.au) Received: from dialup-ad-10-44.camtech.net.au ([203.28.1.172]) by camtech.net.au ; Mon, 04 Oct 1999 22:23:25 +0930 Date: Mon, 4 Oct 1999 22:23:44 +0930 (CST) From: Matthew Thyer X-Sender: matt@localhost Reply-To: thyerm@camtech.net.au To: Ruslan Ermilov Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sleep sleep.1 sleep.c In-Reply-To: <199910010753.AAA82201@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk A similar change for top(1) would be useful but I suppose we dont normally add extra functionality to contributed software. I think it would be good to be able to run "top -s0.5" We'd only need 10ths of a second I think. On Fri, 1 Oct 1999, Ruslan Ermilov wrote: > ru 1999/10/01 00:53:41 PDT > > Modified files: > bin/sleep sleep.1 sleep.c > Log: > Let sleep(1) handle fractions of a second (up to nanosecond). > > This is a conservative change. It does the same thing in weird > cases like the old one. For example, 'sleep abcd' still sleeps > for zero seconds. `sleep 10.a' and `sleep 10.05aa' do the best > and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds). > > Revision Changes Path > 1.13 +17 -9 src/bin/sleep/sleep.1 > 1.9 +57 -5 src/bin/sleep/sleep.c > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message > -- /=======================================================================\ | Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au | \=======================================================================/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message