Updated output of speedtest command

This commit is contained in:
Henry Whitaker
2020-07-08 11:52:47 +01:00
parent 1cae3ecac2
commit 9876b319c5
4 changed files with 27 additions and 6 deletions

View File

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

View File

@@ -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",

View File

@@ -7,7 +7,7 @@ return [
|--------------------------------------------------------------------------
*/
'version' => '1.7.6',
'version' => '1.7.7',
/*
|--------------------------------------------------------------------------

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long