Francois Marier wrote:
I was just thinking about this bug and I was wondering whether there should
be a threshold under which any value is considered "invalid".
For example, a value of "0% left on battery" is likely to be invalid (as in
"improperly reported") since it makes little sense.
So in the case where the battery status is under the threshold, a warning
could be printed to the logs, but the action (shutdown) would be ignored.
Of course, the real fix for the bug reported by Nigel is to check for the
existence of the file before reading from it, but I was thinking about
adding an extra sanity check to prevent similar problems in the future.
Sounds like a good plan to do both. I'll whip up a fix today. Nigel,
thanks for reporting, and my apologies for breaking your system...
Cheers,
Bart
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]