From 3d2b67b180679a6f5687e8d318a66a7cbad3fa7b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 2 Nov 2022 09:31:34 +0100 Subject: [PATCH] use u64 when reporting interface counters Signed-off-by: John Crispin --- netdev.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/netdev.c b/netdev.c index 98e3d57..542ff42 100644 --- a/netdev.c +++ b/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) {