added debugging for net detectin
This commit is contained in:
@@ -656,7 +656,13 @@ fn get_network_traffic() -> Option<(u64, u64)> {
|
||||
let mut total_rx = 0;
|
||||
let mut total_tx = 0;
|
||||
|
||||
for (_, data) in &networks {
|
||||
for (h, data) in &networks {
|
||||
println!(
|
||||
"Interface: {}, RX: {}, TX: {}",
|
||||
h,
|
||||
data.received(),
|
||||
data.transmitted()
|
||||
);
|
||||
total_rx += data.received();
|
||||
total_tx += data.transmitted();
|
||||
}
|
||||
|
Reference in New Issue
Block a user