From: Michael Tremer Date: Thu, 6 Nov 2025 22:55:26 +0000 (+0000) Subject: source: Fix the step check X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=collecty.git source: Fix the step check Signed-off-by: Michael Tremer --- diff --git a/src/daemon/source.c b/src/daemon/source.c index 6025dfe..649d2bc 100644 --- a/src/daemon/source.c +++ b/src/daemon/source.c @@ -669,12 +669,12 @@ static int td_source_check_step(td_source* self, const char* path, rrd_info_t* i } // All okay if the step matches - if (step == USEC_TO_SEC(HEARTBEAT / 2)) + if (step == USEC_TO_SEC(HEARTBEAT)) return 0; // The step does not match DEBUG(self->ctx, "%s: Step does not match (%d, but should be %d)\n", - path, step, USEC_TO_SEC(HEARTBEAT / 2)); + path, step, USEC_TO_SEC(HEARTBEAT)); return 1; }