]> jfr.im git - solanum.git/commit - librb/src/event.c
libratbox: event: continually adjust ish event times
authorSimon Arlott <sa.me.uk>
Sun, 7 Feb 2016 13:50:26 +0000 (13:50 +0000)
committerWilliam Pitcock <redacted>
Thu, 11 Feb 2016 01:03:31 +0000 (19:03 -0600)
commit8ace0906ada0bb92a752462e8be1881da33a9415
treeeba9d37282b39c964e396b06eab68cb869e00548
parenteb1b303d56cd577c6c56e22cbb403a4470cd2920
libratbox: event: continually adjust ish event times

When events are scheduled to run at a random +/- 1/3rd of the specified
frequency it can vary considerably for the longer timers (particularly
try_connections), so adjust the frequency to a different random interval
of the original frequency every time the event runs.
libratbox/src/event.c