]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Higlighted mem
authorMetabox <redacted>
Tue, 23 Apr 2019 01:27:03 +0000 (11:27 +1000)
committerMetabox <redacted>
Tue, 23 Apr 2019 01:27:03 +0000 (11:27 +1000)
htdocs/cgi-bin/stats.cgi

index 6fe67d81434dda77193d18260904e60c3056a000..f52daac184c1e6c7b072a7cf7b662480649c7659 100755 (executable)
@@ -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/<br\/>/g;
+$hardware_status =~ s/Memory:/<b>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 "" }\'';