Project

General

Profile

Bug #310 ยป suricata-1.1beta2-b3f7e6a-pcap-drop-pct.patch

Mike Pomraning, 08/08/2011 04:36 PM

View differences:

src/source-pcap.c
SCLogInfo("(%s) Pcap Total:%" PRIu64 " Recv:%" PRIu64 " Drop:%" PRIu64 " (%02.1f%%).", tv->name,
(uint64_t)pcap_s.ps_recv + (uint64_t)pcap_s.ps_drop, (uint64_t)pcap_s.ps_recv,
(uint64_t)pcap_s.ps_drop, ((float)pcap_s.ps_drop/(float)(pcap_s.ps_drop + pcap_s.ps_recv))*100);
(uint64_t)pcap_s.ps_drop, ((float)pcap_s.ps_drop/(float)((uint64_t)pcap_s.ps_drop + (uint64_t)pcap_s.ps_recv))*100);
return;
}
    (1-1/1)