From 56edd8e79ba551c49168320ce74da1583190ecb7 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Fri, 3 Jul 2020 12:48:32 +0100 Subject: [PATCH] Updated speedtest controller --- conf/site/app/Http/Controllers/SpeedtestController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/site/app/Http/Controllers/SpeedtestController.php b/conf/site/app/Http/Controllers/SpeedtestController.php index d1633a93..60774eb9 100644 --- a/conf/site/app/Http/Controllers/SpeedtestController.php +++ b/conf/site/app/Http/Controllers/SpeedtestController.php @@ -71,8 +71,10 @@ class SpeedtestController extends Controller { $data = SpeedtestHelper::latest(); $avg = Speedtest::select(DB::raw('AVG(ping) as ping, AVG(download) as download, AVG(upload) as upload')) + ->where('failed', false) ->get(); $max = Speedtest::select(DB::raw('MAX(ping) as ping, MAX(download) as download, MAX(upload) as upload')) + ->where('failed', false) ->get(); if($data) {