mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
FRITZBOX: bugfix v2 laborversion
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@15621 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc487d161e
commit
b8fa5076b7
@ -1547,20 +1547,19 @@ sub FRITZBOX_Readout_Run_Web($)
|
|||||||
if defined $wlanList{$mac};
|
if defined $wlanList{$mac};
|
||||||
$dName .= ")";
|
$dName .= ")";
|
||||||
}
|
}
|
||||||
#if ( $_->{ethernet} ) {
|
if ( $_->{ethernet_port} ) {
|
||||||
if ( $_->{speed} ) {
|
|
||||||
$dName .= " (";
|
$dName .= " (";
|
||||||
$dName .= "g" if $_->{guest};
|
$dName .= "g" if $_->{guest};
|
||||||
$dName .= "LAN" . $_->{ethernet_port};
|
$dName .= "LAN" . $_->{ethernet_port};
|
||||||
#$dName .= "LAN" . $result_lan->{$_->{_node}};
|
#$dName .= "LAN" . $result_lan->{$_->{_node}};
|
||||||
$dName .= ", 1 Gbit/s" if $_->{speed} eq "1000";
|
$dName .= ", 1 Gbit/s" if $_->{speed} eq "1000";
|
||||||
$dName .= ", " . $_->{speed} . " Mbit/s" if $_->{speed} != 1000 && $_->{speed} != 0;
|
$dName .= ", " . $_->{speed} . " Mbit/s" if $_->{speed} ne "1000" && $_->{speed} ne "0";
|
||||||
$dName .= ")";
|
$dName .= ")";
|
||||||
}
|
}
|
||||||
my $rName = "mac_".$mac;
|
my $rName = "mac_".$mac;
|
||||||
FRITZBOX_Readout_Add_Reading $hash, \@roReadings, $rName, $dName;
|
FRITZBOX_Readout_Add_Reading $hash, \@roReadings, $rName, $dName;
|
||||||
$wlanCount++ if $_->{wlan} == 1;
|
$wlanCount++ if $_->{wlan} ;
|
||||||
$gWlanCount++ if $_->{wlan} == 1 && $_->{guest} == 1;
|
$gWlanCount++ if $_->{wlan} && $_->{guest} ;
|
||||||
# Remove mac address from oldLanDevice-List
|
# Remove mac address from oldLanDevice-List
|
||||||
delete $oldLanDevice{$rName} if exists $oldLanDevice{$rName};
|
delete $oldLanDevice{$rName} if exists $oldLanDevice{$rName};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user