]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Added uptime
authorwbudic <redacted>
Sat, 15 Dec 2018 05:01:52 +0000 (16:01 +1100)
committerwbudic <redacted>
Sat, 15 Dec 2018 05:01:52 +0000 (16:01 +1100)
htdocs/cgi-bin/stats.cgi

index 04acdbef3764d2615429dc1dbed5617d1f20d276..837b2dd3f5738e0394e7d7eb54fe05fb94f4229e 100755 (executable)
@@ -59,7 +59,7 @@ $stm = 'SELECT sum(ammount) from LOG where date>=date("now","start of year")
 
 my $income =  sprintf("%.2f",selectSQL($stm));
 my $revenue = big_money($income - $expense);
-my $hardware_status =`inxi -b -c0`;
+my $hardware_status =`inxi -b -c0;uptime -p`;
 $hardware_status =~ s/\n/<br\/>/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 "" }\'';
 my  $processes = `$prc | sort -u -r -`;