Skip to content

Commit

Permalink
Fix bug with ntp config not being set.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Oct 3, 2023
1 parent 69c6eb3 commit af0fe37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collector/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
type ntpCollector struct {
stratum, leap, rtt, offset, reftime, rootDelay, rootDispersion, sanity typedDesc
logger log.Logger
config NodeCollectorConfig
config *NodeCollectorConfig
}

func init() {
Expand Down Expand Up @@ -113,6 +113,7 @@ func NewNtpCollector(config *NodeCollectorConfig, logger log.Logger) (Collector,
nil, nil,
), prometheus.GaugeValue},
logger: logger,
config: config,
}, nil
}

Expand Down

0 comments on commit af0fe37

Please sign in to comment.