Add missing argument to fmt.Errorf function in 'ntp' collector

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
This commit is contained in:
Pavel Borzenkov 2015-11-13 18:09:11 +03:00
parent 7eb7917eea
commit d773360d12
1 changed files with 1 additions and 1 deletions

View File

@ -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{