diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-15 23:11:36 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-15 23:11:36 +0200 |
commit | 4d1af1e5ade06242c4a7580446781c9ab2b0f2fa (patch) | |
tree | 9386b3216698a504e27bccdab3d4ff87c908ef63 /net.lua | |
parent | 2cfdd5aac7acd54591a7305c364eba9219fad04f (diff) | |
download | vicious-legacy-4d1af1e5ade06242c4a7580446781c9ab2b0f2fa.tar.xz |
bat: better fix for ACPI, from bioe007
Previous commit had redudant string > number conversions, and only
covered one scenario - when battery is charged. bioe007 suggested to
use math.min. Now lets explain why this is needed. Some (lousy)
batteries report "remaining capacity" higher than "last full capacity"
when AC is connected. That leads to battery charges like "160%".
Diffstat (limited to 'net.lua')
0 files changed, 0 insertions, 0 deletions