Commit 6acf9a9b by Michael Vogt

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

parent 73a12b04
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment