aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_common.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-10-09 18:58:10 -0700
committerchrislu <chris.lu@gmail.com>2022-10-09 18:58:10 -0700
commitf9383aa726771b9bd9027cf5e9d62fcaecad9cee (patch)
tree1bbba371016de151bb2348a250d9c0b0b096812a /weed/shell/command_ec_common.go
parent0f522da367b85820aa0fb1e8b2efb769cecff7af (diff)
downloadseaweedfs-f9383aa726771b9bd9027cf5e9d62fcaecad9cee.tar.xz
seaweedfs-f9383aa726771b9bd9027cf5e9d62fcaecad9cee.zip
refactor to change capacity data type
Diffstat (limited to 'weed/shell/command_ec_common.go')
-rw-r--r--weed/shell/command_ec_common.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.go
index 325e504c4..5ca77785f 100644
--- a/weed/shell/command_ec_common.go
+++ b/weed/shell/command_ec_common.go
@@ -282,10 +282,6 @@ func mountEcShards(grpcDialOption grpc.DialOption, collection string, volumeId n
})
}
-func divide(total, n int) float64 {
- return float64(total) / float64(n)
-}
-
func ceilDivide(total, n int) int {
return int(math.Ceil(float64(total) / float64(n)))
}