[PATCH] prevent flood syslog if battery remaining time is above 60 hours
Danny Kukawka
danny.kukawka at web.de
Sat Nov 24 10:25:49 PST 2007
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.
Danny
util_pm.c | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-util_compute_time_remaining_warning_highTime_v2.diff
Type: text/x-diff
Size: 1475 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071124/c9272b4c/attachment.diff
More information about the hal
mailing list