diff --git a/collector/ntp.go b/collector/ntp.go index 5b8ea914..133f1e5f 100644 --- a/collector/ntp.go +++ b/collector/ntp.go @@ -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{