mirror of https://github.com/jetkvm/kvm.git
Cleanup: removed redundant code
This commit is contained in:
parent
caa0a60ebb
commit
0027001390
|
@ -1,15 +0,0 @@
|
||||||
package audio
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// GetMetricsUpdateInterval returns the current metrics update interval from centralized config
|
|
||||||
func GetMetricsUpdateInterval() time.Duration {
|
|
||||||
return Config.MetricsUpdateInterval
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetMetricsUpdateInterval sets the metrics update interval in centralized config
|
|
||||||
func SetMetricsUpdateInterval(interval time.Duration) {
|
|
||||||
config := Config
|
|
||||||
config.MetricsUpdateInterval = interval
|
|
||||||
UpdateConfig(config)
|
|
||||||
}
|
|
Loading…
Reference in New Issue