Skip to content

Commit

Permalink
fix: get disk size on openbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Sep 2, 2024
1 parent 6454018 commit 7939d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions space_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func GetDiskSize(dir string) (total uint64, avail uint64, err error) {
if err != nil {
return 0, 0, err
}
avail = fs.F_blocks * uint64(fs.F_bsize)
total = uint64(fs.F_bavail) * uint64(fs.F_bsize)
avail = uint64(fs.F_bavail) * uint64(fs.F_bsize)
total = fs.F_blocks * uint64(fs.F_bsize)
return total, avail, nil
}

0 comments on commit 7939d38

Please sign in to comment.