From e2b602c486611e393861dd0060a9212880dd319a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 30 Dec 2025 17:00:13 -0800 Subject: [PATCH] Address Copilot review comments --- weed/shell/command_volume_list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index 04573d402..468c704a0 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -275,16 +275,16 @@ func writeECShardInformationMessage(writer io.Writer, t *master_pb.VolumeEcShard var shardDetails []string for _, shardId := range si.Ids() { size := uint64(si.Size(shardId)) - shardDetails = append(shardDetails, fmt.Sprintf("%d:%s", shardId, util.BytesToHumanReadable(uint64(size)))) + shardDetails = append(shardDetails, fmt.Sprintf("%d:%s", shardId, util.BytesToHumanReadable(size))) totalSize += size } - shardSizeInfo = fmt.Sprintf(" sizes:[%s] total:%s", strings.Join(shardDetails, " "), util.BytesToHumanReadable(uint64(totalSize))) + shardSizeInfo = fmt.Sprintf(" sizes:[%s] total:%s", strings.Join(shardDetails, " "), util.BytesToHumanReadable(totalSize)) } output(verbosityLevel >= 5, writer, " ec volume id:%v collection:%v shards:%v%s %s\n", t.Id, t.Collection, si.Ids(), shardSizeInfo, expireAtString) - // TODO: add file counts once available in VolumeInformationMessage. + // TODO: add file counts once available in VolumeEcShardInformationMessage. return statistics{ Size: totalSize, }