2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@2455 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
pahenning 2013-01-08 13:04:37 +00:00
parent 68afbe4306
commit 1378d7da9e

View File

@ -434,7 +434,7 @@ sub OWCOUNT_FormatValues($) {
}
#-- rate
if( ($delt > 0.0) && $present ){
$vrate = int( ($vval-$oldval)/$delt*1000)/1000;
$vrate = ($vval-$oldval)/$delt;
} else {
$vrate = 0.0;
}
@ -443,7 +443,8 @@ sub OWCOUNT_FormatValues($) {
$vrate*=3600;
}elsif( $period eq "minute" ){
$vrate*=60;
}
}
$vrate = int($vrate * 1000)/1000;
if( !defined($runit) ){
Log 1,"OWCOUNT: Error in rate unit definition. i=$i, owg_rate[i]=".$owg_rate[$i];