aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-10 12:33:29 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-10 12:33:29 -0700
commit057ef429ac95600c18d94103b11ceed472f1fb65 (patch)
tree18d0b1d92d55bb244db4c7ea675a8c93d5504848 /weed/shell/command_volume_balance.go
parentb63b042afc0661debc53d01584241aa42074b308 (diff)
downloadseaweedfs-057ef429ac95600c18d94103b11ceed472f1fb65.tar.xz
seaweedfs-057ef429ac95600c18d94103b11ceed472f1fb65.zip
format
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 8233affa7..df3067722 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -271,7 +271,7 @@ func balanceSelectedVolume(commandEnv *CommandEnv, diskType types.DiskType, volu
// no more volume servers with empty slots
break
}
- fmt.Fprintf(os.Stdout, "disk %s target ratio %.2f %s %.2f %s %.2f", diskType.ReadableString(), idealVolumeRatio, fullNode.info.Id, fullNode.localVolumeRatio(capacityFunc), emptyNode.info.Id, emptyNode.localVolumeNextRatio(capacityFunc))
+ fmt.Fprintf(os.Stdout, "%s %.2f %.2f:%.2f\t", diskType.ReadableString(), idealVolumeRatio, fullNode.localVolumeRatio(capacityFunc), emptyNode.localVolumeNextRatio(capacityFunc))
hasMoved, err = attemptToMoveOneVolume(commandEnv, volumeReplicas, fullNode, candidateVolumes, emptyNode, applyBalancing)
if err != nil {
return