aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-07-30 21:17:03 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-07-30 21:17:03 +0000
commitc1c9e0bb904dd3ccd69a758512908afb8f86bb43 (patch)
tree4784d882c7eccfa6a98405601e337dce64937563 /editcap.c
parentf43578e8f43db82849503452b3810ee13edb16ad (diff)
nononono.... print one on 250 not every line
svn path=/trunk/; revision=22426
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 44760eeda7..800393f1ad 100644
--- a/editcap.c
+++ b/editcap.c
@@ -188,7 +188,7 @@ selected(int recno)
static gboolean check_timestamp(wtap *wth) {
static int i = 0;
struct wtap_pkthdr* pkthdr = wtap_phdr(wth);
- if (i%250) printf("== %d starttime=%lu stoptime=%lu ts=%lu",i,starttime,stoptime,pkthdr->ts.secs);
+ if (!((i++)%250)) printf("== %d starttime=%lu stoptime=%lu ts=%lu",i,starttime,stoptime,pkthdr->ts.secs);
return ( (time_t) pkthdr->ts.secs >= starttime ) && ( (time_t) pkthdr->ts.secs <= stoptime );
}