[PATCH] fix fd.o bug 5865 - don't set percentag if chargelevel is 0

Danny Kukawka danny.kukawka at web.de
Mon Jan 7 10:20:31 PST 2008


this patch fixes fd.o bug #5865. Since current_charge == 0 means the battery 
or the info isn't available: remove or don't set 
battery.charge_level.percentage since it's not mandatory. The key should be 
only 0 if it's really at 0 percentage and not if the battery info is missing.


 addon-usb-csr.c |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-usb_csr_battery_fd.o5865.diff
Type: text/x-diff
Size: 1196 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080107/568ddf80/attachment.diff 

More information about the hal mailing list