Skip to content

Commit

Permalink
style: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce-Soghigian committed Jan 27, 2024
1 parent c8febdc commit dc6097c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,17 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) caerrors.AutoscalerErr
a.clusterStateRegistry.PeriodicCleanup()
a.DebuggingSnapshotter.StartDataCollection()
defer a.DebuggingSnapshotter.Flush()

podLister := a.AllPodLister()
autoscalingContext := a.AutoscalingContext

stateUpdateStart := time.Now()
klog.V(3).Infof("Starting main loop at %v", currentTime)
defer func() {
endOfLoop := time.Now()
runOnceLoopDuration := endOfLoop.Sub(currentTime)
endOfLoop := time.Now()
runOnceLoopDuration := endOfLoop.Sub(currentTime)
metrics.RunOnceLoopDurationInSeconds.Set(runOnceLoopDuration.Seconds())
klog.V(3).Infof("Finished main loop at %v", endOfLoop)
klog.V(3).Infof("Finished main loop at %v", endOfLoop)
}()

// Get nodes and pods currently living on cluster
Expand Down

0 comments on commit dc6097c

Please sign in to comment.