Passed
Push — master ( 4871e3...509a81 )
by Nils
02:29
created
src/Data/Collector/Collector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.