tazpanel diff hardware.cgi @ rev 236
hardware.cgi: Fix page load (FIXME battery)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 28 11:58:53 2012 +0100 (2012-02-28) |
parents | 0b69a546638a |
children | 460c608c35ff |
line diff
1.1 --- a/hardware.cgi Fri Feb 24 15:15:23 2012 -0500 1.2 +++ b/hardware.cgi Tue Feb 28 11:58:53 2012 +0100 1.3 @@ -112,8 +112,9 @@ 1.4 remain=$(sed '/remaining capacity/!d;s/[^0-9]*\([0-9]*\).*/\1/' < $dev/state) 1.5 rate=$(sed '/present rate/!d;s/[^0-9]*\([0-9]*\).*/\1/' < $dev/state) 1.6 full=$(sed '/last full capacity/!d;s/[^0-9]*\([0-9]*\).*/\1/' < $dev/info) 1.7 - remtime=$(( ($remain * 60) / $rate )) 1.8 - rempct=$(( ($remain * 100) / $full )) 1.9 + # FIXME 1.10 + #remtime=$(( ($remain * 60) / $rate )) 1.11 + #rempct=$(( ($remain * 100) / $full )) 1.12 cat << EOT 1.13 <tr> 1.14 <td><img src="$IMAGES/battery.png" />