From 7ce120ea5c63f8e06124787895eb0d700c4210dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Mon, 13 Jan 2025 16:36:26 +0000 Subject: [PATCH] add additional filtering on 'en...' endpoints --- nym-node/src/node/http/state/load.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nym-node/src/node/http/state/load.rs b/nym-node/src/node/http/state/load.rs index 2120fa0e5d5..96199426dbb 100644 --- a/nym-node/src/node/http/state/load.rs +++ b/nym-node/src/node/http/state/load.rs @@ -96,10 +96,10 @@ impl RawUsage { let mut eth_transmitted = 0; let mut eth_received = 0; - // we're only interested in interfaces with 'eth' prefix + // we're only interested in interfaces with 'eth' or 'en' prefix // (that's a very weak assumption, but that's just first iteration of this endpoint) for (interface, data) in networks.list() { - if interface.starts_with("eth") { + if interface.starts_with("eth") || interface.starts_with("en") { eth_transmitted += data.total_transmitted(); eth_received += data.total_received(); }