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');