File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ protected function memory(): array
136136
137137 $ memoryUsed = match (PHP_OS_FAMILY ) {
138138 'Darwin ' => $ memoryTotal - intval (intval (shell_exec ("vm_stat | grep 'Pages free' | grep -Eo '[0-9]+' " )) * intval (shell_exec ('pagesize ' )) / 1024 / 1024 ), // MB
139- 'Linux ' => $ memoryTotal - intval (shell_exec ("cat /proc/meminfo | grep MemAvailable | grep -E -o '[0-9]+' " )) / 1024 , // MB
139+ 'Linux ' => $ memoryTotal - intval (intval ( shell_exec ("cat /proc/meminfo | grep MemAvailable | grep -E -o '[0-9]+' " )) / 1024 ) , // MB
140140 'Windows ' => $ memoryTotal - intval (((int ) trim ((string ) shell_exec ('wmic OS get FreePhysicalMemory | more +1 ' ))) / 1024 ), // MB
141141 'BSD ' => intval (intval (shell_exec ("( sysctl vm.stats.vm.v_cache_count | grep -Eo '[0-9]+' ; sysctl vm.stats.vm.v_inactive_count | grep -Eo '[0-9]+' ; sysctl vm.stats.vm.v_active_count | grep -Eo '[0-9]+' ) | awk '{s+=$1} END {print s}' " )) * intval (shell_exec ('pagesize ' )) / 1024 / 1024 ), // MB
142142 default => throw new RuntimeException ('The pulse:check command does not currently support ' .PHP_OS_FAMILY ),
You can’t perform that action at this time.
0 commit comments