Skip to content

Commit

Permalink
fix mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Sep 1, 2024
1 parent a29b8e6 commit c146b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diskusage/diskusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 28 in src/diskusage/diskusage.go

View workflow job for this annotation

GitHub Actions / build

du.stat.Bfree undefined (type *unix.Statfs_t has no field or method Bfree)

Check failure on line 28 in src/diskusage/diskusage.go

View workflow job for this annotation

GitHub Actions / build

du.stat.Bsize undefined (type *unix.Statfs_t has no field or method Bsize)
}

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

0 comments on commit c146b15

Please sign in to comment.