aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
authorRoman Shishkin <spark@uwtech.org>2025-09-18 16:44:40 +0300
committerGitHub <noreply@github.com>2025-09-18 06:44:40 -0700
commitb6f5fb4b454828f293488ddccee9250381f441ed (patch)
tree8aab194e27b91adb0f7701e4f50f7ccc042bf17c /weed/shell/command_volume_fix_replication.go
parent59ceb5862b8a9d84b38a3914da200f3da830cfd0 (diff)
downloadseaweedfs-b6f5fb4b454828f293488ddccee9250381f441ed.tar.xz
seaweedfs-b6f5fb4b454828f293488ddccee9250381f441ed.zip
Human-readable processed bytes in volume.fix.replication (#7253)
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
-rw-r--r--weed/shell/command_volume_fix_replication.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index 65e212444..de0bc93a7 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -15,6 +15,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
"github.com/seaweedfs/seaweedfs/weed/storage/needle_map"
"github.com/seaweedfs/seaweedfs/weed/storage/types"
+ "github.com/seaweedfs/seaweedfs/weed/util"
"google.golang.org/grpc"
"github.com/seaweedfs/seaweedfs/weed/operation"
@@ -362,7 +363,7 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Co
}
}
if resp.ProcessedBytes > 0 {
- fmt.Fprintf(writer, "volume %d processed %d bytes\n", replica.info.Id, resp.ProcessedBytes)
+ fmt.Fprintf(writer, "volume %d processed %s bytes\n", replica.info.Id, util.BytesToHumanReadable(uint64(resp.ProcessedBytes)))
}
}