Skip to content

Commit ff46250

Browse files
committed
Use util::log() for error message
1 parent 9972172 commit ff46250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/plugins/processes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ public function list(): string
1010
{
1111
elog(__METHOD__);
1212

13-
$cmd = "ps -eo rss:10,vsz:10,%cpu:5,cmd --sort=rss | grep -v \"^\s\+0\" | cut -c -79";
13+
$cmd = "xps -eo rss:10,vsz:10,%cpu:5,cmd --sort=rss | grep -v \"^\s\+0\" | cut -c -79";
1414
$output = shell_exec($cmd);
1515

1616
if ($output === null || $output === false) {
17-
return $this->t->list(['procs' => 'Error: Unable to fetch process information']);
17+
util::log('Error: Unable to fetch process information');
1818
}
1919

2020
return $this->t->list(['procs' => $output]);

0 commit comments

Comments
 (0)