From: Will Budic Date: Wed, 19 Feb 2020 10:20:35 +0000 (+1100) Subject: Output corrected. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=cb9e8e6064e19cb1e2ec4e4dd1bd50e6a0780ba0;p=LifeLog.git Output corrected. --- diff --git a/htdocs/cgi-bin/stats.cgi b/htdocs/cgi-bin/stats.cgi index a039b5b..b8c24cc 100755 --- a/htdocs/cgi-bin/stats.cgi +++ b/htdocs/cgi-bin/stats.cgi @@ -106,7 +106,7 @@ $hardware_status =~ s/\n//g; $hardware_status =~ s/Memory:/Memory:/g; $hardware_status =~ s/Init:/<\/b>Initial:/g; $hardware_status =~ s/up\s/Server is up: /g; -$hardware_status .= "$HS"; +$hardware_status .= "

$HS

"; my $prc = 'ps -eo size,pid,user,command --sort -size | awk \'{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }\''; my $processes = `$prc | sort -u -r -`;