mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Updated output of speedtest command
This commit is contained in:
@@ -42,10 +42,21 @@ class SpeedtestLatestCommand extends Command
|
|||||||
$latest = SpeedtestHelper::latest();
|
$latest = SpeedtestHelper::latest();
|
||||||
|
|
||||||
if($latest) {
|
if($latest) {
|
||||||
$this->info('Last speedtest run at: ' . $latest->created_at);
|
if($latest->scheduled) {
|
||||||
$this->info('Ping: ' . $latest->ping . ' ms');
|
$extra = '(scheduled)';
|
||||||
$this->info('Download: ' . $latest->download . ' Mbit/s');
|
} else {
|
||||||
$this->info('Upload: ' . $latest->upload . ' Mbit/s');
|
$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 {
|
} else {
|
||||||
$this->info('No speedtests have been run yet.');
|
$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": [
|
"1.7.6": [
|
||||||
{
|
{
|
||||||
"description": "Fixed issue with page failing to load",
|
"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