revert fix on newTimeCollector

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke 2023-07-10 00:44:30 +02:00
parent 5d96a42382
commit cfb0111d8c
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -24,13 +24,13 @@ type TimeCollector struct {
}
func newTimeCollector(logger log.Logger) (Collector, error) {
const subsystem = "time"
logger = log.With(logger, "collector", subsystem)
if getWindowsVersion(logger) < 100 {
if getWindowsVersion(logger) <= 6.1 {
return nil, errors.New("Windows version older than Server 2016 detected. The time collector will not run and should be disabled via CLI flags or configuration file")
}
const subsystem = "time"
logger = log.With(logger, "collector", subsystem)
return &TimeCollector{
logger: logger,
ClockFrequencyAdjustmentPPBTotal: prometheus.NewDesc(