We'd only log every HeartbeatPeriod + 1 seconds. Discovered by Scott
Bennett, reported as bug 4942.
--- /dev/null
+ o Minor bugfixes:
+ - Actually log the heartbeat message every HeartbeatPeriod seconds, not
+ every HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
+ 0.2.3.1-alpha.. Bug reported by Scott Bennett.
+
/** 12. write the heartbeat message */
if (options->HeartbeatPeriod &&
- time_to_next_heartbeat < now) {
+ time_to_next_heartbeat <= now) {
log_heartbeat(now);
time_to_next_heartbeat = now+options->HeartbeatPeriod;
}