From 709388ed15672489cbad606e138bc4a645d574c0 Mon Sep 17 00:00:00 2001 From: Johannes Ziemke Date: Mon, 26 May 2025 16:38:20 +0200 Subject: [PATCH] AIX: Fix disk blocks to bytes conversion Signed-off-by: Johannes Ziemke --- collector/filesystem_aix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collector/filesystem_aix.go b/collector/filesystem_aix.go index a1314a0f..84bb8913 100644 --- a/collector/filesystem_aix.go +++ b/collector/filesystem_aix.go @@ -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,