Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph: Fix an error in KillState::new
On Mac OSX, Instant::now() is the time since the last boot, which might have been less than a day ago, in which case KillState::new would panic. We now use 'now - 60s' as a time in the past for initialization, and if that fails, we'll use just 'now'. There's not much danger in using 'now', it might just lead to spurious logging and a too-soon update of the kill_rate if the node becomes immediately overloaded after starting. Thanks to kevholder for root-causing the issue and demonstrating a fix. Fixes #1805
- Loading branch information