mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Use them
This commit is contained in:
@@ -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.');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user