From bf95140dbee2b112e8cf1f85d52bff4b13253f5f Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Tue, 2 Aug 2022 18:20:04 +0200 Subject: [PATCH] if all interims have not changed do nothing --- cmd/csaf_aggregator/interim.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/csaf_aggregator/interim.go b/cmd/csaf_aggregator/interim.go index c3eee5c..7ca0108 100644 --- a/cmd/csaf_aggregator/interim.go +++ b/cmd/csaf_aggregator/interim.go @@ -212,6 +212,11 @@ func (w *worker) interimWork(wg *sync.WaitGroup, jobs <-chan *interimJob) { return err } + // Nothing has changed. + if len(notFinalized) == len(interims) { + continue + } + // Simply append the olds. Maybe we got re-configured with // a greater interims interval later. notFinalized = append(notFinalized, olds...)