1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

use statvfs.f_bavail to match the output of "df -B1"

This commit is contained in:
Michael Vogt 2013-05-31 21:20:40 +02:00
parent 73a12b04a4
commit 6acf9a9b3b

View file

@ -561,9 +561,9 @@ class LinuxHardware(Hardware):
'device':fields[0],
'fstype': fields[2],
'options': fields[3],
# statvfs
# statvfs data
'size_total': statvfs_result.f_bsize * statvfs_result.f_blocks,
'size_free': statvfs_result.f_bsize * statvfs_result.f_bfree,
'size_available': statvfs_result.f_bsize * (statvfs_result.f_bavail),
})
def get_device_facts(self):