summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/tcpslice/tcpslice.c2
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;
OpenPOWER on IntegriCloud