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:
Brian Brazil 2015-11-13 15:13:02 +00:00
commit 6e20d89467

View file

@ -45,7 +45,7 @@ func NewNtpCollector() (Collector, error) {
return nil, fmt.Errorf("no NTP server specifies, see --ntpServer") return nil, fmt.Errorf("no NTP server specifies, see --ntpServer")
} }
if *ntpProtocolVersion < 2 || *ntpProtocolVersion > 4 { 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{ return &ntpCollector{