mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Read written bytes instead of read bytes
This commit is contained in:
		
				
					committed by
					
						
						Thomas Gruber
					
				
			
			
				
	
			
			
			
						parent
						
							0a2a85f2ce
						
					
				
				
					commit
					aa6181a018
				
			@@ -278,7 +278,7 @@ func (m *GpfsCollector) Read(interval time.Duration, output chan lp.CCMessage) {
 | 
			
		||||
			output <- y
 | 
			
		||||
		}
 | 
			
		||||
		if m.config.SendBandwidths {
 | 
			
		||||
			if lastBytesWritten := m.lastState[filesystem].bytesRead; lastBytesWritten >= 0 {
 | 
			
		||||
			if lastBytesWritten := m.lastState[filesystem].bytesWritten; lastBytesWritten >= 0 {
 | 
			
		||||
				bwWrite := float64(bytesWritten-lastBytesWritten) / timeDiff
 | 
			
		||||
				if y, err :=
 | 
			
		||||
					lp.NewMessage(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user