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

Danny Kukawka danny.kukawka at web.de
Thu Dec 6 11:33:55 PST 2007


On Donnerstag, 6. Dezember 2007, David Zeuthen wrote:
> On Tue, 2007-12-04 at 10:58 +0000, Rob Taylor wrote:
> > 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 :)
>
> Please commit. Thanks.

Commited,

Danny


More information about the hal mailing list