From: hannes Date: Tue, 13 Dec 2005 08:47:10 +0000 (+0000) Subject: init last/first packet timestamp for both -ttt and -tttttt option X-Git-Tag: tcpdump-4.0.0~280 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/8e01df24a4f825f880cf4919ab1e5a4a9aa2a45b init last/first packet timestamp for both -ttt and -tttttt option --- diff --git a/util.c b/util.c index 13d29974..cededb95 100644 --- a/util.c +++ b/util.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.103 2005-12-13 08:37:23 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.104 2005-12-13 08:47:10 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -183,7 +183,7 @@ ts_print(register const struct timeval *tvp) case 3: /* Microseconds since previous packet */ case 5: /* Microseconds since first packet */ - if (b_sec == 0 && tflag == 5) { + if (b_sec == 0) { /* init timestamp for first packet */ b_usec = tvp->tv_usec; b_sec = tvp->tv_sec;