소스 검색

Merge branch 'freebsdfix-20210813' of tmp/arozos into master

Looks good and I don't care
TC 4 년 전
부모
커밋
76dc16b170
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mod/storage/du/diskusage.go

+ 1 - 1
mod/storage/du/diskusage.go

@@ -25,7 +25,7 @@ func (du *DiskUsage) Free() uint64 {
 
 // Available return total available bytes on file system to an unprivileged user
 func (du *DiskUsage) Available() uint64 {
-	return du.stat.Bavail * uint64(du.stat.Bsize)
+	return uint64(du.stat.Bavail) * uint64(du.stat.Bsize)
 }
 
 // Size returns total size of the file system