|
@@ -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;
|
|
|
-}
|
|
|
|
|
|
|
+}
|