Rate guessing code

Danny Kukawka danny.kukawka at web.de
Wed Nov 2 12:11:45 PST 2005


On Wednesday 02 November 2005 20:15, Søren Hansen wrote:
> I've discussed this a bit with DannyK on IRC today. Please take a peek
> at it and comment.
;-)

As discussed, I would prevent to calculate anything if chargeLevel is negativ. 
This should already work, but I changed the code a littlebit to reduce 
unneeded codepaths in this case.

I also change the return value of the else-block to prevent suggest the 
battery is empty.

Cheers,

Danny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-rate_guessing_magic_v2.diff
Type: text/x-diff
Size: 2660 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051102/f8bd90d6/hal-fix-rate_guessing_magic_v2.bin


More information about the hal mailing list