Sfoglia il codice sorgente

Quick fix the freebsd compile problem

AY 4 anni fa
parent
commit
4c71983420
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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