mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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 $rxb_now = 0;
|
||||
|
||||
Reference in New Issue
Block a user