Process: drop a blank line

This commit is contained in:
Dylan K. Taylor 2020-02-10 12:23:11 +00:00
parent 20d1a048dd
commit 19bd283807

View File

@ -104,7 +104,6 @@ final class Process{
return [$heap, $stack]; return [$heap, $stack];
} }
public static function getThreadCount() : int{ public static function getThreadCount() : int{
if(Utils::getOS() === "linux" or Utils::getOS() === "android"){ if(Utils::getOS() === "linux" or Utils::getOS() === "android"){
if(preg_match("/Threads:[ \t]+([0-9]+)/", file_get_contents("/proc/self/status"), $matches) > 0){ if(preg_match("/Threads:[ \t]+([0-9]+)/", file_get_contents("/proc/self/status"), $matches) > 0){