mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Fix printf format specification for reporting packet stats.
We were using '%d' for unsigned integers, leading to output like this: 1535403189.557168 -483803356 packets received on interface 0:1, 0 dropped
This commit is contained in:
parent
7dbd6366f9
commit
e275927a64
10 changed files with 13 additions and 9 deletions
|
@ -421,7 +421,7 @@ void net_get_final_stats()
|
|||
{
|
||||
iosource::PktSrc::Stats s;
|
||||
ps->Statistics(&s);
|
||||
reporter->Info("%d packets received on interface %s, %d dropped",
|
||||
reporter->Info("%u packets received on interface %s, %u dropped",
|
||||
s.received, ps->Path().c_str(), s.dropped);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue