[增添]添加了CPU占用率饼图

This commit is contained in:
makotocc0107
2024-08-29 14:35:40 +08:00
committed by Coding
parent 9862f9eb53
commit a3566a1449
3 changed files with 87 additions and 18 deletions

View File

@@ -56,7 +56,7 @@ class SystemStats extends BaseWidget
return $item['value'][1] ?? 0;
}, $networkReceiveResult['data']['result'])) / (1024 * 1024), 2);
$networkDisplay = ": {$networkTransmit} MB/s\n: {$networkReceive} MB/s";
$networkDisplay = ": {$networkTransmit} MB/s\n: {$networkReceive} MB/s";
return [
BaseWidget\Stat::make('内存占用', $memoryDisplay),