View Single Post
Posts: 29 | Thanked: 2 times | Joined on May 2010
#18
would you fix this? i copy and paste from the battery codes above.

hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\"11\">mAh</span>(%"perc")"} else {print "Charging"}';

output only show the current mah/0 ...isnt it should show current mah/last mah ? try to test code above, thanks alot