Skip to content

Commit

Permalink
Merge pull request #482 from andreapollastri/4.x
Browse files Browse the repository at this point in the history
Dashboard Fix
  • Loading branch information
andreapollastri authored Mar 17, 2024
2 parents 0ed6117 + 355d44c commit a430bc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Filament/Widgets/StatsOverview.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function getStats(): array
->description('Server IP')
->descriptionIcon('heroicon-m-globe-alt'),
Stat::make('Name', config('panel.serverName'))
->description('Server name')
->description('Server Name')
->descriptionIcon('heroicon-m-rocket-launch'),
Stat::make('CPU', (isset($stats->cpu)) ? $stats->cpu.'%' : '0'.'%')
->description('CPU usage')
Expand All @@ -36,12 +36,12 @@ protected function getStats(): array
->description('RAM usage')
->descriptionIcon('heroicon-m-rectangle-stack')
->chart($chart->pluck('ram')->reverse()->toArray()),
Stat::make('Sites', Site::count())
->description('Hosted sites')
->descriptionIcon('heroicon-m-computer-desktop'),
Stat::make('HDD', (isset($stats->hdd)) ? $stats->hdd : '0%')
->description('HDD usage')
->descriptionIcon('heroicon-m-server'),
Stat::make('Sites', Site::count())
->description('Hosted sites')
->descriptionIcon('heroicon-m-computer-desktop'),
];
}
}

0 comments on commit a430bc8

Please sign in to comment.