diff options
| author | chrislu <chris.lu@gmail.com> | 2024-10-24 21:41:39 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-10-24 21:41:39 -0700 |
| commit | 8d6189bcc514b48b792deca65d4dd8efc3e0c3f9 (patch) | |
| tree | 9c1b1dbdef4d5a9d89cb5102898f209e0a98862c /weed/shell/command_volume_list.go | |
| parent | 2f3d820f52db544b84d6b17417a3e933b395932f (diff) | |
| download | seaweedfs-8d6189bcc514b48b792deca65d4dd8efc3e0c3f9.tar.xz seaweedfs-8d6189bcc514b48b792deca65d4dd8efc3e0c3f9.zip | |
adjust output format
Diffstat (limited to 'weed/shell/command_volume_list.go')
| -rw-r--r-- | weed/shell/command_volume_list.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.go index 44efd8a36..fe7d5f732 100644 --- a/weed/shell/command_volume_list.go +++ b/weed/shell/command_volume_list.go @@ -179,12 +179,12 @@ func (c *commandVolumeList) writeDiskInfo(writer io.Writer, t *master_pb.DiskInf continue } - var destroyTimeDisplay string + var expireAtString string destroyTime := ecShardInfo.ExpireAtSec if destroyTime > 0 { - destroyTimeDisplay = time.Unix(int64(destroyTime), 0).Format("2006-01-02 15:04:05") + expireAtString = fmt.Sprintf("expireAt:%s", time.Unix(int64(destroyTime), 0).Format("2006-01-02 15:04:05")) } - output(verbosityLevel >= 5, writer, " ec volume id:%v collection:%v shards:%v destroyTime:%s\n", ecShardInfo.Id, ecShardInfo.Collection, erasure_coding.ShardBits(ecShardInfo.EcIndexBits).ShardIds(), destroyTimeDisplay) + output(verbosityLevel >= 5, writer, " ec volume id:%v collection:%v shards:%v %s\n", ecShardInfo.Id, ecShardInfo.Collection, erasure_coding.ShardBits(ecShardInfo.EcIndexBits).ShardIds(), expireAtString) } output(verbosityLevel >= 4, writer, " Disk %s %+v \n", diskType, s) return s |
