corrected calculation of average...
This commit is contained in:
parent
aa184b785c
commit
c53e21a420
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class MeterInterpreter extends Interpreter {
|
|||
* @todo reimplement according to new env
|
||||
*/
|
||||
public function getAverage() {
|
||||
return round($this->getConsumption() / ($this->to - $this->from) * 1000, 1); // return W
|
||||
return round(3600*1000*$this->getConsumption() / ($this->to - $this->from), 10); // return W
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue