2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 12:18:46 +00:00

correct message load calculation

git-svn-id: https://svn.fhem.de/fhem/trunk@5299 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-03-22 18:42:05 +00:00
parent 6f76fb4cb8
commit c4f5d40c6d

View File

@ -312,7 +312,6 @@ sub HMLAN_UpdtMsgLoad($$) {####################################################
push @tl,int($hCap->{$_%$HMmlSlice}/450);
$hCap->{sum} += $hCap->{$_%$HMmlSlice}; # need to recalc incase a slice was removed
}
$hash->{msgLoadEst} = "1hour:".int($hCap->{sum}/450)."% "
.(60/$HMmlSlice)."min steps: ".join("/",reverse @tl);
#testing only ." :".$hCap->{sum}
@ -738,7 +737,7 @@ sub HMLAN_SimpleWrite(@) {#####################################################
.' ' .$dst
.' ' .$p;
HMLAN_UpdtMsgLoad($name,length($p)/2+20 +(hex($flg)&0x10)?440:0);#burst counts
HMLAN_UpdtMsgLoad($name,length($p)/2+20 +((hex($flg)&0x10)?440:0));#burst counts
}
else{
Log3 $hash, ($hash->{helper}{log}{sys}?0:5), 'HMLAN_Send: '.$name.' I:'.$msg;