Skip to content

Commit

Permalink
remove unused sliding window in GenericHeadroomManager (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
luomingmeng authored Jul 25, 2023
1 parent 7b74634 commit c8b2187
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ type GenericHeadroomManager struct {

headroomAdvisor hmadvisor.ResourceAdvisor
emitter metrics.MetricEmitter
originSlidingWindow general.SmoothWindow
reportSlidingWindow general.SmoothWindow

reportResultTransformer func(quantity resource.Quantity) resource.Quantity
Expand Down Expand Up @@ -93,11 +92,6 @@ func NewGenericHeadroomManager(name v1.ResourceName, useMilliValue, reportMilliV
reportResultTransformer: reportResultTransformer,
syncPeriod: syncPeriod,
headroomAdvisor: headroomAdvisor,
originSlidingWindow: general.NewCappedSmoothWindow(
slidingWindowOptions.MinStep,
slidingWindowOptions.MaxStep,
general.NewAverageWithTTLSmoothWindow(slidingWindowSize, slidingWindowTTL, useMilliValue),
),
reportSlidingWindow: general.NewCappedSmoothWindow(
slidingWindowOptions.MinStep,
slidingWindowOptions.MaxStep,
Expand Down

0 comments on commit c8b2187

Please sign in to comment.