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

Noticed that first iteration of top also isn't acurrate...

...so I propose this change to have results from second iteration of top. If you have better solution please modify this PR.
®omano 9 лет назад
Родитель
Сommit
b96010be72
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ogp_agent.pl

+ 1 - 1
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(`top -b -c -o +%CPU -w512 -n1|grep "COMMAND" -A 30`);
+		$taskList{'task'} = encode_base64(`top -b -c -o +%CPU -w512 -n2|grep "COMMAND" -A 30|tail -36`);
 		return {%taskList};
 		return {%taskList};
 	}
 	}
 	elsif($action eq 'get_timestamp')
 	elsif($action eq 'get_timestamp')