Просмотр исходного кода

Merge pull request #140 from Zorrototo/patch-2

Make it consistent to also use TOP for Webhost Status...
OwN-3m-All 9 лет назад
Родитель
Сommit
d2bc3d4012
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/status/include/task.php

+ 1 - 1
modules/status/include/task.php

@@ -39,7 +39,7 @@ if( isset($_GET['remote_server_id']) && $_GET['remote_server_id'] != "webhost")
 	}else{
 	}else{
 		if($os == "linux"){
 		if($os == "linux"){
 			$taskoutput = array();
 			$taskoutput = array();
-			$taskoutput["task"] = shell_exec ("ps -Ao user,pid,pcpu,pmem,comm,args --sort=-pcpu | head -n 30");
+			$taskoutput["task"] = shell_exec ("top -b -c -i -w512 -n2 | awk '/^top/{i++}i==2' | grep 'COMMAND' -A 30");
 		}
 		}
 	}
 	}
 }
 }