Fix NTP server command line reference

--ntpServer is actually -collector.ntp.server
This commit is contained in:
Christian Svensson 2016-02-20 21:03:17 +01:00 committed by Christian Svensson
parent 3853d9f0a6
commit fff0298c68
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func init() {
// the offset between ntp and the current system time. // the offset between ntp and the current system time.
func NewNtpCollector() (Collector, error) { func NewNtpCollector() (Collector, error) {
if *ntpServer == "" { if *ntpServer == "" {
return nil, fmt.Errorf("no NTP server specifies, see --ntpServer") return nil, fmt.Errorf("no NTP server specified, see -collector.ntp.server")
} }
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", *ntpProtocolVersion) return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4", *ntpProtocolVersion)