Jan. 20, 2016
12:29 p.m.
Guy Harris <guy@alum.mit.edu> writes:
Waking up once a second *iff* the display is on (if it's off, there's no point in updating the blacked-out battery charge level)
Well, I'd read your "check every second" as implying logic that depends on checking it at fixed intervals, so whether the display is on or off. Otherwise you've got to store the timestamp of the last check (or of a longer-ago check, to get a smoother average) and subtract it from the current one... which this bug is apparently a result of such subtraction being done in local time.