pull/1172/merge
Sec Cake 1 week ago committed by GitHub
commit 29fcad1fed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -134,7 +134,7 @@ func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
Path: path,
Fstype: getFsType(stat),
Total: (uint64(stat.F_blocks) * uint64(bsize)),
Free: (uint64(stat.F_bavail) * uint64(bsize)),
Free: (uint64(stat.F_bfree) * uint64(bsize)),
InodesTotal: (uint64(stat.F_files)),
InodesFree: (uint64(stat.F_ffree)),
}

@ -22,7 +22,7 @@ func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
Path: unescapeFstab(path),
Fstype: getFsType(stat),
Total: (uint64(stat.Blocks) * uint64(bsize)),
Free: (uint64(stat.Bavail) * uint64(bsize)),
Free: (uint64(stat.Bfree) * uint64(bsize)),
InodesTotal: (uint64(stat.Files)),
InodesFree: (uint64(stat.Ffree)),
}

Loading…
Cancel
Save