mirror of
https://github.com/outbackdingo/udevmand.git
synced 2026-01-27 10:20:51 +00:00
use u64 when reporting interface counters
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
20
netdev.c
20
netdev.c
@@ -177,16 +177,16 @@ iface_dump(int delta)
|
||||
}
|
||||
|
||||
d = blobmsg_open_table(&b, "counters");
|
||||
blobmsg_add_u32(&b, "rx_packets", iface->stats.rx_packets);
|
||||
blobmsg_add_u32(&b, "tx_packets", iface->stats.tx_packets);
|
||||
blobmsg_add_u32(&b, "rx_bytes", iface->stats.rx_bytes);
|
||||
blobmsg_add_u32(&b, "tx_bytes", iface->stats.tx_bytes);
|
||||
blobmsg_add_u32(&b, "rx_errors", iface->stats.rx_errors);
|
||||
blobmsg_add_u32(&b, "tx_errors", iface->stats.tx_errors);
|
||||
blobmsg_add_u32(&b, "rx_dropped", iface->stats.rx_dropped);
|
||||
blobmsg_add_u32(&b, "tx_dropped", iface->stats.tx_dropped);
|
||||
blobmsg_add_u32(&b, "multicast", iface->stats.multicast);
|
||||
blobmsg_add_u32(&b, "collisions", iface->stats.collisions);
|
||||
blobmsg_add_u64(&b, "rx_packets", iface->stats.rx_packets);
|
||||
blobmsg_add_u64(&b, "tx_packets", iface->stats.tx_packets);
|
||||
blobmsg_add_u64(&b, "rx_bytes", iface->stats.rx_bytes);
|
||||
blobmsg_add_u64(&b, "tx_bytes", iface->stats.tx_bytes);
|
||||
blobmsg_add_u64(&b, "rx_errors", iface->stats.rx_errors);
|
||||
blobmsg_add_u64(&b, "tx_errors", iface->stats.tx_errors);
|
||||
blobmsg_add_u64(&b, "rx_dropped", iface->stats.rx_dropped);
|
||||
blobmsg_add_u64(&b, "tx_dropped", iface->stats.tx_dropped);
|
||||
blobmsg_add_u64(&b, "multicast", iface->stats.multicast);
|
||||
blobmsg_add_u64(&b, "collisions", iface->stats.collisions);
|
||||
blobmsg_close_table(&b, d);
|
||||
|
||||
if (delta) {
|
||||
|
||||
Reference in New Issue
Block a user