Improved the way how are detected processes in Process.pm module

This commit is contained in:
Jordi Sanfeliu 2014-10-08 14:52:24 +02:00
parent 87f367a7db
commit ea8ec79ae7
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ sub process_update {
# check if that process is running
if(open(IN, "ps -eo pid,comm,command |")) {
while(<IN>) {
if(m/^\s*(\d+)\s+(\S+)\s+(\S+)\s+/) {
if(m/^\s*(\d+)\s+(\S+)\s+(.*?)$/) {
if($p eq trim($2)) {
push(@pid, $1);
$pro++;