corrected calculation of average...

This commit is contained in:
Justin Otherguy 2011-01-09 23:52:05 +01:00
parent aa184b785c
commit c53e21a420

View file

@ -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
}
/**