Skip to content

Commit

Permalink
Remove unnecessary type coversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley authored and muesli committed Oct 18, 2020
1 parent 8ec9520 commit fa682c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mounts_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ func mounts() ([]Mount, []string, error) {
Type: fsType,
Opts: opts,
Metadata: stat,
Total: (uint64(stat.Blocks) * uint64(stat.Bsize)),
Free: (uint64(stat.Bavail) * uint64(stat.Bsize)),
Used: (uint64(stat.Blocks) - uint64(stat.Bfree)) * uint64(stat.Bsize),
Total: stat.Blocks * uint64(stat.Bsize),
Free: stat.Bavail * uint64(stat.Bsize),
Used: (stat.Blocks - stat.Bfree) * uint64(stat.Bsize),
Inodes: stat.Files,
InodesFree: stat.Ffree,
InodesUsed: stat.Files - stat.Ffree,
Blocks: uint64(stat.Blocks),
Blocks: stat.Blocks,
BlockSize: uint64(stat.Bsize),
}
d.DeviceType = deviceType(d)
Expand Down

0 comments on commit fa682c5

Please sign in to comment.