From e9efd62ea9383aa6b2faa27890ef093e287e7728 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 1 May 2014 12:20:22 +0200 Subject: [PATCH] health status fix --- webui/controller/health/worker.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webui/controller/health/worker.php b/webui/controller/health/worker.php index 8932aa00..1a2e88eb 100644 --- a/webui/controller/health/worker.php +++ b/webui/controller/health/worker.php @@ -87,14 +87,13 @@ class ControllerHealthWorker extends Controller { */ //average messages per day, computed over the past week - $averagemessagesweekraw = ($this->data['processed_emails'][1]) / 7; + $averagemessagesweekraw = ($this->data['processed_emails'][2]) / 7; //average messages per day, computed over the past month - $averagemessagesmonthraw = ($this->data['processed_emails'][2]) / 30; + $averagemessagesmonthraw = ($this->data['processed_emails'][3]) / 30; //average messages per day, computed over the time period since the first email was archived - if($total_number_days > 0) { $averagemessagestotalraw = ($this->data['counters']['rcvd']) / $total_number_days; } - + if($total_number_days > 0) { $averagemessagestotalraw = $this->data['counters']['rcvd'] / $total_number_days; } /*