nononono.... print one on 250 not every line
svn path=/trunk/; revision=22426
This commit is contained in:
parent
f43578e8f4
commit
c1c9e0bb90
|
@ -188,7 +188,7 @@ selected(int recno)
|
||||||
static gboolean check_timestamp(wtap *wth) {
|
static gboolean check_timestamp(wtap *wth) {
|
||||||
static int i = 0;
|
static int i = 0;
|
||||||
struct wtap_pkthdr* pkthdr = wtap_phdr(wth);
|
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 );
|
return ( (time_t) pkthdr->ts.secs >= starttime ) && ( (time_t) pkthdr->ts.secs <= stoptime );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue