mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
fix mismatch
This commit is contained in:
parent
a29b8e6d1d
commit
c146b150b8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue