mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +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:
parent
6f76fb4cb8
commit
c4f5d40c6d
@ -312,7 +312,6 @@ sub HMLAN_UpdtMsgLoad($$) {####################################################
|
|||||||
push @tl,int($hCap->{$_%$HMmlSlice}/450);
|
push @tl,int($hCap->{$_%$HMmlSlice}/450);
|
||||||
$hCap->{sum} += $hCap->{$_%$HMmlSlice}; # need to recalc incase a slice was removed
|
$hCap->{sum} += $hCap->{$_%$HMmlSlice}; # need to recalc incase a slice was removed
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{msgLoadEst} = "1hour:".int($hCap->{sum}/450)."% "
|
$hash->{msgLoadEst} = "1hour:".int($hCap->{sum}/450)."% "
|
||||||
.(60/$HMmlSlice)."min steps: ".join("/",reverse @tl);
|
.(60/$HMmlSlice)."min steps: ".join("/",reverse @tl);
|
||||||
#testing only ." :".$hCap->{sum}
|
#testing only ." :".$hCap->{sum}
|
||||||
@ -738,7 +737,7 @@ sub HMLAN_SimpleWrite(@) {#####################################################
|
|||||||
.' ' .$dst
|
.' ' .$dst
|
||||||
.' ' .$p;
|
.' ' .$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{
|
else{
|
||||||
Log3 $hash, ($hash->{helper}{log}{sys}?0:5), 'HMLAN_Send: '.$name.' I:'.$msg;
|
Log3 $hash, ($hash->{helper}{log}{sys}?0:5), 'HMLAN_Send: '.$name.' I:'.$msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user