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,
 | 
									mountPoint: stat.MountPoint,
 | 
				
			||||||
				fsType:     fstype,
 | 
									fsType:     fstype,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			size:      float64(stat.TotalBlocks / 512.0),
 | 
								size:      float64(stat.TotalBlocks * 512.0),
 | 
				
			||||||
			free:      float64(stat.FreeBlocks / 512.0),
 | 
								free:      float64(stat.FreeBlocks * 512.0),
 | 
				
			||||||
			avail:     float64(stat.FreeBlocks / 512.0), // AIX doesn't distinguish between free and available blocks.
 | 
								avail:     float64(stat.FreeBlocks * 512.0), // AIX doesn't distinguish between free and available blocks.
 | 
				
			||||||
			files:     float64(stat.TotalInodes),
 | 
								files:     float64(stat.TotalInodes),
 | 
				
			||||||
			filesFree: float64(stat.FreeInodes),
 | 
								filesFree: float64(stat.FreeInodes),
 | 
				
			||||||
			ro:        ro,
 | 
								ro:        ro,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue