diff options
author | jkh <jkh@FreeBSD.org> | 1995-02-16 09:17:27 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-02-16 09:17:27 +0000 |
commit | 1323b9b07e7ab4448d6b8162835124d460fd8ceb (patch) | |
tree | dc2a63156daf74212212b363a15676d580dfe088 /bin/csh | |
parent | 195c413a5cda168ebc5702d6c6559d6a3fb82096 (diff) | |
download | FreeBSD-src-1323b9b07e7ab4448d6b8162835124d460fd8ceb.zip FreeBSD-src-1323b9b07e7ab4448d6b8162835124d460fd8ceb.tar.gz |
1000000 usec -> 1 sec 0 usec; fix.
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
Diffstat (limited to 'bin/csh')
-rw-r--r-- | bin/csh/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/time.c b/bin/csh/time.c index a38f154..bee5bae 100644 --- a/bin/csh/time.c +++ b/bin/csh/time.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: time.c,v 1.2 1994/09/24 02:54:20 davidg Exp $ */ #ifndef lint @@ -256,7 +256,7 @@ tvadd(tsum, t0) tsum->tv_sec += t0->tv_sec; tsum->tv_usec += t0->tv_usec; - if (tsum->tv_usec > 1000000) + if (tsum->tv_usec >= 1000000) tsum->tv_sec++, tsum->tv_usec -= 1000000; } |