Skip to content

Commit 709388e

Browse files
AIX: Fix disk blocks to bytes conversion
Signed-off-by: Johannes Ziemke <github@5pi.de>
1 parent 4d053b9 commit 709388e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎collector/filesystem_aix.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
5353
mountPoint: stat.MountPoint,
5454
fsType: fstype,
5555
},
56-
size: float64(stat.TotalBlocks / 512.0),
57-
free: float64(stat.FreeBlocks / 512.0),
58-
avail: float64(stat.FreeBlocks / 512.0), // AIX doesn't distinguish between free and available blocks.
56+
size: float64(stat.TotalBlocks * 512.0),
57+
free: float64(stat.FreeBlocks * 512.0),
58+
avail: float64(stat.FreeBlocks * 512.0), // AIX doesn't distinguish between free and available blocks.
5959
files: float64(stat.TotalInodes),
6060
filesFree: float64(stat.FreeInodes),
6161
ro: ro,

0 commit comments

Comments
 (0)