...so I propose this change to have results from second iteration of top. If you have better solution please modify this PR.
@@ -3833,7 +3833,7 @@ sub shell_action
elsif($action eq 'get_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};
}
elsif($action eq 'get_timestamp')