[PATCH] prevent flood syslog if battery remaining time is above 60 hours

Rob Taylor rob.taylor at codethink.co.uk
Tue Dec 4 02:58:40 PST 2007


Danny Kukawka wrote:
> On Samstag, 24. November 2007, Danny Kukawka wrote:
>> Hi,
>>
>> this patch prevents to get the syslog flooded with "remaining_time *very*
>> high, returning -1" warning messages on some laptops. With this patch the
>> message get send only the first 10 times and then only 1 message for each
>> 100 cases (we can changes this also to a higher number).
>>
>> We have this patch already since several months in the SUSE package, maybe
>> it's usefull in general.
> 
> Any comments? Okay to commit?

Looks ok to me, though I don't know this bit of code all that well.
CC'd hughsie for a second opinion :)

Thanks,
Rob

> Danny
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal


-- 
Rob Taylor, Codethink Ltd. -  http://codethink.co.uk


More information about the hal mailing list