mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fix: network speed
git-svn-id: https://svn.fhem.de/fhem/trunk@8526 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7d9c32e1e7
commit
b21847fa7d
@ -2693,7 +2693,7 @@ sub SYSMON_getNetworkInfo ($$$) {
|
||||
$map->{$nName.DIFF_SUFFIX} = $out_txt_diff;
|
||||
}
|
||||
|
||||
my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/eth0/speed ] && cat /sys/class/net/eth0/speed || echo not available");
|
||||
my $speed = SYSMON_execute($hash, "[ -f /sys/class/net/$nName/speed ] && cat /sys/class/net/$nName/speed || echo not available");
|
||||
if(defined($speed)) {
|
||||
$map->{$nName.SPEED_SUFFIX} = $speed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user