From owner-cvs-all Mon Nov 27 22:15:41 2000 Delivered-To: cvs-all@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 6FBA137B681; Mon, 27 Nov 2000 22:15:37 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAS6FZb28465; Mon, 27 Nov 2000 22:15:35 -0800 (PST) Date: Mon, 27 Nov 2000 22:15:35 -0800 From: Alfred Perlstein To: Warner Losh Cc: "Brian F. Feldman" , obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/inetd builtins.c Message-ID: <20001127221535.Y8051@fw.wintelcom.net> References: <20001126182240.A8051@fw.wintelcom.net> <200011262140.eAQLe2576200@green.dyndns.org> <20001126182240.A8051@fw.wintelcom.net> <200011280524.WAA07413@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011280524.WAA07413@harmony.village.org>; from imp@village.org on Mon, Nov 27, 2000 at 10:24:03PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Warner Losh [001127 21:24] wrote: > In message <20001126182240.A8051@fw.wintelcom.net> Alfred Perlstein writes: > : - if ((to.tv_usec += tv.tv_usec) >= 1000000) { > : + to.tv_usec += tv.tv_usec; > : + if (to.tv_usec >= 1000000) { > : to.tv_usec -= 1000000; > : to.tv_sec++; > : } > > Shouldn't this be > if (to.tv_usec >= 1000000) { > to.tv_sec += to.tv_usec / 1000000; > to.tv_usec %= 1000000; > } Yes, but it's overkill as afaik to.tv_usec >= 2000000 shouldn't happen. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message