Skip to content

Commit

Permalink
fix: fsutils AvailableSpace
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Mar 31, 2024
1 parent 11b0303 commit 398742b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fsutils/fsutils_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ func AvailableSpace(path string) (uint64, error) {
if err != nil {
return 0, err
}
return stat.Bavail * uint64(stat.Bsize), nil
return uint64(stat.Bavail) * uint64(stat.Bsize), nil
}

0 comments on commit 398742b

Please sign in to comment.