1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-27 12:34:19 +03: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
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