소스 검색

Merge pull request #9 from Zorrototo/patch-1

Change Process Monitor command line to reflect real CPU usage…
OwN-3m-All 9 년 전
부모
커밋
2b7e3b7299
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ogp_agent.pl

+ 2 - 2
ogp_agent.pl

@@ -3833,7 +3833,7 @@ sub shell_action
 	elsif($action eq 'get_tasklist')
 	elsif($action eq 'get_tasklist')
 	{
 	{
 		my %taskList;
 		my %taskList;
-		$taskList{'task'} = encode_base64(`ps -Ao user,pid,pcpu,pmem,comm,args --sort=-pcpu | head -n 30`);
+		$taskList{'task'} = encode_base64(`top -b -c -o +%CPU -w512 -n1|grep "COMMAND" -A 30`);
 		return {%taskList};
 		return {%taskList};
 	}
 	}
 	elsif($action eq 'get_timestamp')
 	elsif($action eq 'get_timestamp')
@@ -3898,4 +3898,4 @@ sub remote_query
 		return encode_base64($response, "");
 		return encode_base64($response, "");
 	}
 	}
 	return -1;
 	return -1;
-}
+}