From c1f9c5fae7a05be4b85cb26d059ff11a9509d99b Mon Sep 17 00:00:00 2001 From: hexenmeister Date: Mon, 4 May 2015 22:13:57 +0000 Subject: [PATCH] fix: network speed git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8526 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/42_SYSMON.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/42_SYSMON.pm b/FHEM/42_SYSMON.pm index 55def0b8c..7377ccf4a 100644 --- a/FHEM/42_SYSMON.pm +++ b/FHEM/42_SYSMON.pm @@ -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; }