mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Switch packet stats to uint64.
This commit is contained in:
parent
e275927a64
commit
c8aa6f757e
2 changed files with 4 additions and 4 deletions
|
@ -421,7 +421,7 @@ void net_get_final_stats()
|
|||
{
|
||||
iosource::PktSrc::Stats s;
|
||||
ps->Statistics(&s);
|
||||
reporter->Info("%u packets received on interface %s, %u dropped",
|
||||
reporter->Info("%" PRIu64 " packets received on interface %s, %" PRIu64 " dropped",
|
||||
s.received, ps->Path().c_str(), s.dropped);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,18 +28,18 @@ public:
|
|||
/**
|
||||
* Packets received by source after filtering (w/o drops).
|
||||
*/
|
||||
unsigned int received;
|
||||
uint64 received;
|
||||
|
||||
/**
|
||||
* Packets dropped by source.
|
||||
*/
|
||||
unsigned int dropped; // pkts dropped
|
||||
uint64 dropped; // pkts dropped
|
||||
|
||||
/**
|
||||
* Total number of packets on link before filtering.
|
||||
* Optional, can be left unset if not available.
|
||||
*/
|
||||
unsigned int link;
|
||||
uint64 link;
|
||||
|
||||
/**
|
||||
* Bytes received by source after filtering (w/o drops).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue