]> git.ipfire.org Git - oddments/collecty.git/commitdiff
source: Fix the step check master
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Nov 2025 22:55:26 +0000 (22:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Nov 2025 22:55:26 +0000 (22:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/source.c

index 6025dfed77c7956bc5f9071e4256631db779db77..649d2bc9c403d65142a87187496aef0ad8c1f733 100644 (file)
@@ -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
        }
 
        // 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",
                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;
 }
 
        return 1;
 }