nononono.... print one on 250 not every line

svn path=/trunk/; revision=22426
This commit is contained in:
Luis Ontanon 2007-07-30 21:17:03 +00:00
parent f43578e8f4
commit c1c9e0bb90
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}