From f6a8e18da90fb333cdaaa21943f20ce0b9950198 Mon Sep 17 00:00:00 2001 From: Sidhant Kohli Date: Thu, 2 Jan 2025 07:27:25 +0530 Subject: [PATCH] add comments Signed-off-by: Sidhant Kohli --- pkg/mvtxdaemon/server/service/rater/rater_lookback_utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/mvtxdaemon/server/service/rater/rater_lookback_utils.go b/pkg/mvtxdaemon/server/service/rater/rater_lookback_utils.go index f1bf41414..f84711290 100644 --- a/pkg/mvtxdaemon/server/service/rater/rater_lookback_utils.go +++ b/pkg/mvtxdaemon/server/service/rater/rater_lookback_utils.go @@ -49,13 +49,12 @@ func (r *Rater) updateDynamicLookbackSecs() { // calculate rates for each look back seconds vertexName := r.monoVertex.Name processingTimeSeconds, update := r.CalculateVertexProcessingTime(r.timestampedPodProcessingTime) - r.log.Infof("MYDEBUG: processingTimeSeconds %f ", processingTimeSeconds) if !update { return } + r.log.Debugf("Calulcated processingTimeSeconds for mvtx %s : %f ", vertexName, processingTimeSeconds) // if the current calculated processing time is greater than the lookback Seconds, update it currentVal := r.userSpecifiedLookBackSeconds.Load() - // round up to the nearest minute, also ensure that while going up and down we have the consistent value for // a given processingTimeSeconds, then convert back to seconds roundedProcessingTime := 60 * int(math.Ceil(processingTimeSeconds/60))