disk[unix]: revert 61cb121. psutil uses Available as Free.

pull/121/head
Shirou WAKAYAMA 10 years ago
parent d49c4afc40
commit 223c809234

@ -16,7 +16,7 @@ func DiskUsage(path string) (*DiskUsageStat, error) {
Path: path, Path: path,
Fstype: getFsType(stat), Fstype: getFsType(stat),
Total: (uint64(stat.Blocks) * uint64(bsize)), Total: (uint64(stat.Blocks) * uint64(bsize)),
Free: (uint64(stat.Bfree) * uint64(bsize)), Free: (uint64(stat.Bavail) * uint64(bsize)),
InodesTotal: (uint64(stat.Files)), InodesTotal: (uint64(stat.Files)),
InodesFree: (uint64(stat.Ffree)), InodesFree: (uint64(stat.Ffree)),
} }

Loading…
Cancel
Save