Switch packet stats to uint64.

This commit is contained in:
Robin Sommer 2018-09-05 20:33:30 +00:00
parent e275927a64
commit c8aa6f757e
2 changed files with 4 additions and 4 deletions

View file

@ -421,7 +421,7 @@ void net_get_final_stats()
{ {
iosource::PktSrc::Stats s; iosource::PktSrc::Stats s;
ps->Statistics(&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); s.received, ps->Path().c_str(), s.dropped);
} }
} }

View file

@ -28,18 +28,18 @@ public:
/** /**
* Packets received by source after filtering (w/o drops). * Packets received by source after filtering (w/o drops).
*/ */
unsigned int received; uint64 received;
/** /**
* Packets dropped by source. * Packets dropped by source.
*/ */
unsigned int dropped; // pkts dropped uint64 dropped; // pkts dropped
/** /**
* Total number of packets on link before filtering. * Total number of packets on link before filtering.
* Optional, can be left unset if not available. * Optional, can be left unset if not available.
*/ */
unsigned int link; uint64 link;
/** /**
* Bytes received by source after filtering (w/o drops). * Bytes received by source after filtering (w/o drops).