speed.cgi: Use new system methods

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2021-05-17 23:17:43 +02:00
committed by Michael Tremer
parent 12317449d0
commit 1e7c0108ab

View File

@@ -36,8 +36,8 @@ foreach $field (@fields) {
}
}
my $interface = `cat /var/ipfire/red/iface 2>/dev/null`;
my @data_now = `ip -s link show $interface 2>/dev/null`;
my $interface = &General::get_red_interface();
my @data_now = &General::system_output("ip", "-s", "link", "show", "$interface");
my $lastline;
my $rxb_now = 0;