From 2348de0b05dc141ec585e7cb92089069f56e9c6b Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 15 Dec 2014 22:20:20 +0100 Subject: [PATCH] health fix --- webui/controller/health/worker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/controller/health/worker.php b/webui/controller/health/worker.php index eddb9bef..52e5802c 100644 --- a/webui/controller/health/worker.php +++ b/webui/controller/health/worker.php @@ -89,10 +89,10 @@ class ControllerHealthWorker extends Controller { */ //average messages per day, computed over the past week - $averagemessagesweekraw = ($this->data['processed_emails'][2]) / 7; + $averagemessagesweekraw = ($this->data['processed_emails']['last_7_days_count']) / 7; //average messages per day, computed over the past month - $averagemessagesmonthraw = ($this->data['processed_emails'][3]) / 30; + $averagemessagesmonthraw = ($this->data['processed_emails']['last_30_days_count']) / 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; }