2
0
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:
hexenmeister 2015-05-04 22:13:57 +00:00
parent 7d9c32e1e7
commit b21847fa7d

View File

@ -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;
}