fix new battery plugin to work better with multiple batteries presentmaster
commit959dad3e9cf371d9753544d036f613d4631a1e4b
authorBart Trojanowski <bart@jukie.net>
Sat, 16 Jan 2010 01:43:22 +0000 (15 20:43 -0500)
committerBart Trojanowski <bart@jukie.net>
Sat, 16 Jan 2010 01:43:46 +0000 (15 20:43 -0500)
tree53bdfed0851d5ecd520d7979f702f0dcb2846cc9
parentd5a6781b4e88e6be4c3a714402167371add2c3be
fix new battery plugin to work better with multiple batteries present

- detect all batteries if none specified
- handle Unknown state for secondary batteries better
- introduce a battery.practically_full_percentage setting to handle faulty reports
src/plugins/battery.lua