Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 22:24:03 -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:  <200011280524.WAA07413@harmony.village.org>
In-Reply-To: Your message of "Sun, 26 Nov 2000 18:22:40 PST." <20001126182240.A8051@fw.wintelcom.net> 
References:  <20001126182240.A8051@fw.wintelcom.net>  <bright@wintelcom.net> <200011262140.eAQLe2576200@green.dyndns.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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;
	}

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?200011280524.WAA07413>