From 9bccf9e0ccc49ce04700af4ccebaa58ce7e169da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kr=C3=BCger?= Date: Mon, 26 Aug 2024 10:26:14 +0200 Subject: [PATCH] fix(iroh-net): Magic sock `recv_data_ipv4` and `recv_data_ipv6` metrics numbers --- iroh-net/src/magicsock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iroh-net/src/magicsock.rs b/iroh-net/src/magicsock.rs index 3d57cb7126..ef9da018fb 100644 --- a/iroh-net/src/magicsock.rs +++ b/iroh-net/src/magicsock.rs @@ -725,9 +725,9 @@ impl MagicSock { } else { trace!(src = %meta.addr, len = %meta.stride, "UDP recv: quic packet"); if from_ipv4 { - inc_by!(MagicsockMetrics, recv_data_ipv4, buf.len() as _); + inc_by!(MagicsockMetrics, recv_data_ipv4, packet.len() as _); } else { - inc_by!(MagicsockMetrics, recv_data_ipv6, buf.len() as _); + inc_by!(MagicsockMetrics, recv_data_ipv6, packet.len() as _); } true };