diff --git a/lib/Interpreter/MeterInterpreter.php b/lib/Interpreter/MeterInterpreter.php index 017ddfc..15451d3 100644 --- a/lib/Interpreter/MeterInterpreter.php +++ b/lib/Interpreter/MeterInterpreter.php @@ -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 } /**