Fixed min setting bug

This commit is contained in:
Henry Whitaker
2020-09-11 01:23:25 +01:00
parent 8ff87c2e7a
commit 342d3fabf4
6 changed files with 13 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ class SpeedtestController extends Controller
$response['maximum'] = $max;
}
if (SettingsHelper::get('show_average')) {
if (SettingsHelper::get('show_min')) {
$min = Speedtest::select(DB::raw('MIN(ping) as ping, MIN(download) as download, MIN(upload) as upload'))
->where('failed', false)
->first()