Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 23:20:47 -0700
From:      Warner Losh <imp@village.org>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        "Brian F. Feldman" <green@FreeBSD.org>, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/inetd builtins.c 
Message-ID:  <200011280620.XAA07951@harmony.village.org>
In-Reply-To: Your message of "Mon, 27 Nov 2000 22:15:35 PST." <20001127221535.Y8051@fw.wintelcom.net> 
References:  <20001127221535.Y8051@fw.wintelcom.net>  <20001126182240.A8051@fw.wintelcom.net> <bright@wintelcom.net> <200011262140.eAQLe2576200@green.dyndns.org> <20001126182240.A8051@fw.wintelcom.net> <200011280524.WAA07413@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20001127221535.Y8051@fw.wintelcom.net> Alfred Perlstein writes:
: * Warner Losh <imp@village.org> [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.

I missed that we were adding two normalized tv, so forget I said
anything.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011280620.XAA07951>