Commit 223c8092 authored by Shirou WAKAYAMA's avatar Shirou WAKAYAMA

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

parent d49c4afc
......@@ -16,7 +16,7 @@ func DiskUsage(path string) (*DiskUsageStat, error) {
Path: path,
Fstype: getFsType(stat),
Total: (uint64(stat.Blocks) * uint64(bsize)),
Free: (uint64(stat.Bfree) * uint64(bsize)),
Free: (uint64(stat.Bavail) * uint64(bsize)),
InodesTotal: (uint64(stat.Files)),
InodesFree: (uint64(stat.Ffree)),
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