mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 13:23:04 +01:00
Updated output of speedtest command
This commit is contained in:
@@ -42,10 +42,21 @@ class SpeedtestLatestCommand extends Command
|
||||
$latest = SpeedtestHelper::latest();
|
||||
|
||||
if($latest) {
|
||||
$this->info('Last speedtest run at: ' . $latest->created_at);
|
||||
$this->info('Ping: ' . $latest->ping . ' ms');
|
||||
$this->info('Download: ' . $latest->download . ' Mbit/s');
|
||||
$this->info('Upload: ' . $latest->upload . ' Mbit/s');
|
||||
if($latest->scheduled) {
|
||||
$extra = '(scheduled)';
|
||||
} else {
|
||||
$extra = '(manual)';
|
||||
}
|
||||
|
||||
$this->info('Last speedtest run at: ' . $latest->created_at . ' ' . $extra);
|
||||
|
||||
if($latest->failed) {
|
||||
$this->error('Speedtest failed');
|
||||
} else {
|
||||
$this->info('Ping: ' . $latest->ping . ' ms');
|
||||
$this->info('Download: ' . $latest->download . ' Mbit/s');
|
||||
$this->info('Upload: ' . $latest->upload . ' Mbit/s');
|
||||
}
|
||||
} else {
|
||||
$this->info('No speedtests have been run yet.');
|
||||
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"1.7.7": [
|
||||
{
|
||||
"description": "Fixed speedtest:latest output",
|
||||
"link": ""
|
||||
},
|
||||
{
|
||||
"description": "Updated dependencies",
|
||||
"link": ""
|
||||
}
|
||||
],
|
||||
"1.7.6": [
|
||||
{
|
||||
"description": "Fixed issue with page failing to load",
|
||||
|
||||
@@ -7,7 +7,7 @@ return [
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'version' => '1.7.6',
|
||||
'version' => '1.7.7',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user