aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-12 04:08:03 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-12 04:08:03 -0700
commit446e476a11cb2b6bb947ae39619099c09fdd091c (patch)
tree5a06a8bf0a7092e8238b2543cdf4a945a020dad3 /weed/shell/command_volume_balance.go
parentea26a98753b7f15b561504166469760237e49c3b (diff)
downloadseaweedfs-446e476a11cb2b6bb947ae39619099c09fdd091c.tar.xz
seaweedfs-446e476a11cb2b6bb947ae39619099c09fdd091c.zip
go fmt
Diffstat (limited to 'weed/shell/command_volume_balance.go')
-rw-r--r--weed/shell/command_volume_balance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index c92d61e35..624821431 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -174,7 +174,7 @@ func (n *Node) localVolumeRatio() float64 {
}
func (n *Node) localVolumeNextRatio() float64 {
- return divide(len(n.selectedVolumes) + 1, int(n.info.MaxVolumeCount))
+ return divide(len(n.selectedVolumes)+1, int(n.info.MaxVolumeCount))
}
func (n *Node) selectVolumes(fn func(v *master_pb.VolumeInformationMessage) bool) {