diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-07-30 21:17:03 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-07-30 21:17:03 +0000 |
commit | c1c9e0bb904dd3ccd69a758512908afb8f86bb43 (patch) | |
tree | 4784d882c7eccfa6a98405601e337dce64937563 /editcap.c | |
parent | f43578e8f43db82849503452b3810ee13edb16ad (diff) |
nononono.... print one on 250 not every line
svn path=/trunk/; revision=22426
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); } |