Add missing argument to fmt.Errorf function in 'ntp' collector
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
This commit is contained in:
parent
7eb7917eea
commit
d773360d12
|
@ -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 New Issue