diff options
author | charnier <charnier@FreeBSD.org> | 2000-05-28 15:06:45 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2000-05-28 15:06:45 +0000 |
commit | aaa781a609b58248d37a08d077febcc8c704cd3d (patch) | |
tree | a3a6943ff932e60ebd2c6f5554b37540384560ae | |
parent | b112a2cd58bc889a0d620a4a83de7eb4ad47ec37 (diff) | |
download | FreeBSD-src-aaa781a609b58248d37a08d077febcc8c704cd3d.zip FreeBSD-src-aaa781a609b58248d37a08d077febcc8c704cd3d.tar.gz |
1000000 usecs to 1 sec conversion
-rw-r--r-- | usr.sbin/tcpdump/tcpslice/tcpslice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/tcpslice/tcpslice.c b/usr.sbin/tcpdump/tcpslice/tcpslice.c index dba5ead..3ee5d50 100644 --- a/usr.sbin/tcpdump/tcpslice/tcpslice.c +++ b/usr.sbin/tcpdump/tcpslice/tcpslice.c @@ -248,7 +248,7 @@ parse_time(char *time_string, struct timeval base_time) result.tv_sec += base_time.tv_sec; result.tv_usec += base_time.tv_usec; - if ( result.tv_usec > 1000000 ) + if ( result.tv_usec >= 1000000 ) { result.tv_usec -= 1000000; ++result.tv_sec; |