pcap/afpacket: update counters at exit

In really short Suricata runtimes the capture counters would not
be updated. This patch does a force update at the end of the
capture loops in pcap and af-packet.
pull/849/head
Victor Julien 12 years ago
parent 3ec6bcf284
commit 4e561d6b20

@ -1101,6 +1101,8 @@ TmEcode ReceiveAFPLoop(ThreadVars *tv, void *data, void *slot)
SCPerfSyncCountersIfSignalled(tv);
}
AFPDumpCounters(ptv);
SCPerfSyncCountersIfSignalled(tv);
SCReturnInt(TM_ECODE_OK);
}

@ -346,6 +346,8 @@ TmEcode ReceivePcapLoop(ThreadVars *tv, void *data, void *slot)
SCPerfSyncCountersIfSignalled(tv);
}
PcapDumpCounters(ptv);
SCPerfSyncCountersIfSignalled(tv);
SCReturnInt(TM_ECODE_OK);
}

Loading…
Cancel
Save