mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	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 a new issue