mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
- Move hardcoded constants to centralized config system - Remove verbose debug logging statements - Clean up unused code and improve error handling
16 lines
446 B
Go
16 lines
446 B
Go
package audio
|
|
|
|
import "time"
|
|
|
|
// GetMetricsUpdateInterval returns the current metrics update interval from centralized config
|
|
func GetMetricsUpdateInterval() time.Duration {
|
|
return GetConfig().MetricsUpdateInterval
|
|
}
|
|
|
|
// SetMetricsUpdateInterval sets the metrics update interval in centralized config
|
|
func SetMetricsUpdateInterval(interval time.Duration) {
|
|
config := GetConfig()
|
|
config.MetricsUpdateInterval = interval
|
|
UpdateConfig(config)
|
|
}
|