From fa682c578e19657479123c06ca1dbb054bced875 Mon Sep 17 00:00:00 2001 From: Dean Coakley Date: Sat, 17 Oct 2020 23:53:28 +0100 Subject: [PATCH] Remove unnecessary type coversions --- mounts_darwin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mounts_darwin.go b/mounts_darwin.go index fcbd3ace..a72e567b 100644 --- a/mounts_darwin.go +++ b/mounts_darwin.go @@ -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)