mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	AIX: Fix disk blocks to bytes conversion
Signed-off-by: Johannes Ziemke <github@5pi.de> Signed-off-by: Shashwat Hiregoudar <shashwat.h@flipkart.com>
This commit is contained in:
		
							parent
							
								
									c230ccfef9
								
							
						
					
					
						commit
						53cfd7a0e4
					
				| 
						 | 
				
			
			@ -53,9 +53,9 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
 | 
			
		|||
				mountPoint: stat.MountPoint,
 | 
			
		||||
				fsType:     fstype,
 | 
			
		||||
			},
 | 
			
		||||
			size:      float64(stat.TotalBlocks / 512.0),
 | 
			
		||||
			free:      float64(stat.FreeBlocks / 512.0),
 | 
			
		||||
			avail:     float64(stat.FreeBlocks / 512.0), // AIX doesn't distinguish between free and available blocks.
 | 
			
		||||
			size:      float64(stat.TotalBlocks * 512.0),
 | 
			
		||||
			free:      float64(stat.FreeBlocks * 512.0),
 | 
			
		||||
			avail:     float64(stat.FreeBlocks * 512.0), // AIX doesn't distinguish between free and available blocks.
 | 
			
		||||
			files:     float64(stat.TotalInodes),
 | 
			
		||||
			filesFree: float64(stat.FreeInodes),
 | 
			
		||||
			ro:        ro,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue