health fix

This commit is contained in:
SJ 2014-12-15 22:20:20 +01:00
parent aba29bff77
commit 2348de0b05

View File

@ -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; }