Skip to content

Commit c146b15

Browse files
committed
fix mismatch
1 parent a29b8e6 commit c146b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diskusage/diskusage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NewDiskUsage(volumePath string) *DiskUsage {
2525

2626
// Free returns total free bytes on file system
2727
func (du *DiskUsage) Free() uint64 {
28-
return du.stat.Bfree * uint64(du.stat.Bsize)
28+
return uint64(du.stat.Bfree) * uint64(du.stat.Bsize)
2929
}
3030

3131
// Available return total available bytes on file system to an unprivileged user

0 commit comments

Comments
 (0)