Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ListResults extends ListRecords

protected function getTablePollingInterval(): ?string
{
return '5s';
return config('speedtest.results_polling');
}

protected function getMaxContentWidth(): string
Expand Down
5 changes: 5 additions & 0 deletions app/Filament/Widgets/RecentJitterChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ class RecentJitterChart extends LineChartWidget

public ?string $filter = '24h';

protected function getPollingInterval(): ?string
{
return config('speedtest.dashboard_polling');
}

protected function getHeading(): string
{
return 'Jitter';
Expand Down
5 changes: 5 additions & 0 deletions app/Filament/Widgets/RecentPingChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ class RecentPingChart extends LineChartWidget

public ?string $filter = '24h';

protected function getPollingInterval(): ?string
{
return config('speedtest.dashboard_polling');
}

protected function getHeading(): string
{
return 'Ping (ms)';
Expand Down
5 changes: 5 additions & 0 deletions app/Filament/Widgets/RecentSpeedChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ class RecentSpeedChart extends LineChartWidget

public ?string $filter = '24h';

protected function getPollingInterval(): ?string
{
return config('speedtest.dashboard_polling');
}

protected function getHeading(): string
{
return 'Download / Upload';
Expand Down
5 changes: 5 additions & 0 deletions app/Filament/Widgets/StatsOverview.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

class StatsOverview extends BaseWidget
{
protected function getPollingInterval(): ?string
{
return config('speedtest.dashboard_polling');
}

protected function getCards(): array
{
$result = Result::latest()->first();
Expand Down
7 changes: 7 additions & 0 deletions config/speedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@
'build_date' => Carbon::parse('2023-05-12'),

'build_version' => '0.11.16',

/**
* Polling
*/
'dashboard_polling' => env('DASHBOARD_POLLING', '5s'),

'results_polling' => env('RESULTS_POLLING', '5s'),
];