0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

fix mismatch

This commit is contained in:
Zack Scholl 2024-09-01 14:47:40 -07:00
parent a29b8e6d1d
commit c146b150b8

View file

@ -25,7 +25,7 @@ func NewDiskUsage(volumePath string) *DiskUsage {
// Free returns total free bytes on file system // Free returns total free bytes on file system
func (du *DiskUsage) Free() uint64 { func (du *DiskUsage) Free() uint64 {
return du.stat.Bfree * uint64(du.stat.Bsize) return uint64(du.stat.Bfree) * uint64(du.stat.Bsize)
} }
// Available return total available bytes on file system to an unprivileged user // Available return total available bytes on file system to an unprivileged user