Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LOG_ERROR_PERIODICALLY() would not log in the first hour after system…
… boot. Since it uses the monotonic clock, the "origin" time is system boot time. So the first time LOG_ERROR_PERIODICALLY() runs, it thinks it last logged at system boot time, and it only logs again if it's been more than an hour since then. We'll just subtract an hour from the origin. Monotonic time is never negative so this should be sufficient.
- Loading branch information