From c53e21a4209330ddb7f1edb6fabd7d7c39714258 Mon Sep 17 00:00:00 2001 From: Justin Otherguy Date: Sun, 9 Jan 2011 23:52:05 +0100 Subject: [PATCH] corrected calculation of average... --- lib/Interpreter/MeterInterpreter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } /**