Skip to content

Commit

Permalink
add additional filtering on 'en...' endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn committed Jan 16, 2025
1 parent c91f4cb commit 7ce120e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nym-node/src/node/http/state/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7ce120e

Please sign in to comment.