From: Metabox Date: Tue, 23 Apr 2019 01:27:03 +0000 (+1000) Subject: Higlighted mem X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=e0da5942f75804b5762dc85128fc0eade01bb27e;p=LifeLog.git Higlighted mem --- diff --git a/htdocs/cgi-bin/stats.cgi b/htdocs/cgi-bin/stats.cgi index 6fe67d8..f52daac 100755 --- a/htdocs/cgi-bin/stats.cgi +++ b/htdocs/cgi-bin/stats.cgi @@ -78,6 +78,8 @@ my $income = sprintf("%.2f",selectSQL($stm)); my $revenue = big_money($income - $expense); my $hardware_status =`inxi -b -c0;uptime -p`; $hardware_status =~ s/\n//g; +$hardware_status =~ s/Memory:/Memory:/g; +$hardware_status =~ s/Init:/<\/b>Initial:/g; 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 "" }\'';