commit | 5950310f43e2b360e690095f6f8c43eb0e1f2e98 | [log] [tgz] |
---|---|---|
author | Girish Gowdra <girish@opennetworking.org> | Thu Jan 14 13:25:54 2021 -0800 |
committer | Girish Gowdra <girish@opennetworking.org> | Thu Jan 14 13:25:54 2021 -0800 |
tree | 0cf0a1ad86ec85ce24cb704d210e542244030ca4 | |
parent | 46a9f01ade07e5772e1cf1ac61779de89564f734 [diff] |
VOL-3766 : Support updating PM frequency. Version updated to 4.0.6 Change-Id: I484aaabae2910ebf7b7423fb3ea80794ebe1f4c1
diff --git a/pkg/adapters/common/performance_metrics.go b/pkg/adapters/common/performance_metrics.go index 6705c72..3b6d4f9 100644 --- a/pkg/adapters/common/performance_metrics.go +++ b/pkg/adapters/common/performance_metrics.go
@@ -48,6 +48,11 @@ } } +// UpdateFrequency will update the frequency. +func (pm *PmMetrics) UpdateFrequency(frequency uint32) { + pm.frequency = frequency +} + func Metrics(pmNames []string) PmMetricsOption { return func(args *PmMetrics) { args.metrics = make(map[string]*voltha.PmConfig)