@@ -6,12 +6,12 @@ |
||
6 | 6 | { |
7 | 7 | public function collect(): array |
8 | 8 | { |
9 | - $totalMem = (int) shell_exec("grep MemTotal /proc/meminfo | awk '{print $2}'"); |
|
10 | - $freeMem = (int) shell_exec("grep MemAvailable /proc/meminfo | awk '{print $2}'"); |
|
9 | + $totalMem = (int)shell_exec("grep MemTotal /proc/meminfo | awk '{print $2}'"); |
|
10 | + $freeMem = (int)shell_exec("grep MemAvailable /proc/meminfo | awk '{print $2}'"); |
|
11 | 11 | $usedMem = $totalMem - $freeMem; |
12 | 12 | |
13 | - $loadAvg = (float) sys_getloadavg()[1]; |
|
14 | - $cpuCores = (int) shell_exec("nproc"); |
|
13 | + $loadAvg = (float)sys_getloadavg()[1]; |
|
14 | + $cpuCores = (int)shell_exec("nproc"); |
|
15 | 15 | |
16 | 16 | $cpuUsagePercent = ($cpuCores > 0) |
17 | 17 | ? round(($loadAvg / $cpuCores) * 100, 1) |