From ac4fd6cb2059007e4e09e6e040f002e2b59f504c Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Sun, 7 Mar 2021 13:46:53 +0000 Subject: [PATCH] Use them --- app/Console/Commands/SpeedtestCommand.php | 2 +- app/Console/Commands/SpeedtestLatestCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/SpeedtestCommand.php b/app/Console/Commands/SpeedtestCommand.php index 4740a67e..11f06553 100644 --- a/app/Console/Commands/SpeedtestCommand.php +++ b/app/Console/Commands/SpeedtestCommand.php @@ -45,7 +45,7 @@ class SpeedtestCommand extends Command { $this->info('Running speedtest, this might take a while...'); - $results = SpeedtestHelper::runSpeedtest(false, false); + $results = $this->speedtestProvider->run(false, false); if (!is_object($results)) { $this->error('Something went wrong running the speedtest.'); diff --git a/app/Console/Commands/SpeedtestLatestCommand.php b/app/Console/Commands/SpeedtestLatestCommand.php index 8fd4bf62..f78bf4be 100644 --- a/app/Console/Commands/SpeedtestLatestCommand.php +++ b/app/Console/Commands/SpeedtestLatestCommand.php @@ -67,7 +67,7 @@ class SpeedtestLatestCommand extends Command $this->info('Running speedtest, this might take a while...'); - $results = SpeedtestHelper::runSpeedtest(); + $results = $this->speedtestProvider->run(); $this->info('Ping: ' . $results->ping . ' ms'); $this->info('Download: ' . $results->download . ' Mbit/s');