mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-28 06:59:44 -08:00
Merge pull request #169 from pborzenkov/ntp-fix-missing-arg
Add missing argument to fmt.Errorf function in 'ntp' collector
This commit is contained in:
commit
6e20d89467
|
@ -45,7 +45,7 @@ func NewNtpCollector() (Collector, error) {
|
|||
return nil, fmt.Errorf("no NTP server specifies, see --ntpServer")
|
||||
}
|
||||
if *ntpProtocolVersion < 2 || *ntpProtocolVersion > 4 {
|
||||
return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4")
|
||||
return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4", *ntpProtocolVersion)
|
||||
}
|
||||
|
||||
return &ntpCollector{
|
||||
|
|
Loading…
Reference in a new issue