livebox-exporter/internal/poller/common.go

10 lines
134 B
Go
Raw Normal View History

2023-03-18 18:56:02 +01:00
package poller
import "math"
const maxMbits = 2150
func sanitizeMbits(mbits float64) float64 {
return math.Min(mbits, maxMbits)
}