diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-12 04:08:03 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-12 04:08:03 -0700 |
| commit | 446e476a11cb2b6bb947ae39619099c09fdd091c (patch) | |
| tree | 5a06a8bf0a7092e8238b2543cdf4a945a020dad3 /weed/shell/command_volume_balance.go | |
| parent | ea26a98753b7f15b561504166469760237e49c3b (diff) | |
| download | seaweedfs-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.go | 2 |
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) { |
