mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fixed speed display if the traffic not goes over red0
This commit is contained in:
@@ -36,7 +36,9 @@ foreach $field (@fields) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my @data_now = `ip -s link show red0`;
|
|
||||||
|
my $interface = `cat /var/ipfire/red/iface`;
|
||||||
|
my @data_now = `ip -s link show $interface`;
|
||||||
|
|
||||||
my $lastline;
|
my $lastline;
|
||||||
my $rxb_now = 0;
|
my $rxb_now = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user