From cbed3d86275358170a60165f80fd7c063a2ea4ee Mon Sep 17 00:00:00 2001 From: Cabinfever_B Date: Fri, 11 Aug 2023 11:35:30 +0800 Subject: [PATCH] address comment Signed-off-by: Cabinfever_B address comment Signed-off-by: Cabinfever_B --- pkg/movingaverage/median_filter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/movingaverage/median_filter.go b/pkg/movingaverage/median_filter.go index 71463fcb77f..92cbc40cd17 100644 --- a/pkg/movingaverage/median_filter.go +++ b/pkg/movingaverage/median_filter.go @@ -215,7 +215,7 @@ func (r *MedianFilter) GetInstantaneous() float64 { return r.records[(r.count-1)%r.size] } -// Clone returns a copy of MedianFilter +// Clone returns a copy of MedianFilter. func (r *MedianFilter) Clone() *MedianFilter { records := make([]float64, len(r.records)) copy(records, r.records) @@ -227,7 +227,7 @@ func (r *MedianFilter) Clone() *MedianFilter { } } -// GetAll only used in test +// GetAll only used in test. func (r *MedianFilter) GetAll() []float64 { if r.count == 0 { return nil