From 4b84c39dbed64f221a052ec5be1fa325f71a413b Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 27 Aug 2019 16:28:57 -0400 Subject: [PATCH] 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. --- src/usr/local/www/diag_system_activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/diag_system_activity.php b/src/usr/local/www/diag_system_activity.php index 1d0d810fc6..dbb474c6b5 100644 --- a/src/usr/local/www/diag_system_activity.php +++ b/src/usr/local/www/diag_system_activity.php @@ -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;