Use batch mode for top so it displays process list w/o terminal. Fixes #9522

While here, set a high number of processes to display and also remove
the use of 'cut' which limited column length. With current display
method it's unnecessary.
This commit is contained in:
jim-p 2019-08-27 16:28:57 -04:00
parent 7729c5a163
commit 4b84c39dbe

View File

@ -33,7 +33,7 @@ require_once("guiconfig.inc");
$pgtitle = array(gettext("Diagnostics"), gettext("System Activity"));
if ($_REQUEST['getactivity']) {
$text = `/usr/bin/top -aHS | /usr/bin/cut -c1-105`;
$text = `/usr/bin/top -baHS 999`;
header('Content-Type: text/plain; charset=UTF-8');
echo $text;
exit;