Skip to content

Commit a340d95

Browse files
Wei Fufuweid
authored andcommitted
bugfix: do not use string to convert int64
We should use imageSize.String() instead of string(imageSize). Otherwise, we will get messy display. Signed-off-by: Wei Fu <[email protected]>
1 parent fe8bd4a commit a340d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/image_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ func (i *ImagesCommand) runImages(args []string) error {
108108

109109
for _, dimg := range dimgs {
110110
if i.flagDigest {
111-
display.AddRow([]string{dimg.id, dimg.name, dimg.digest, string(dimg.size)})
111+
display.AddRow([]string{dimg.id, dimg.name, dimg.digest, dimg.size.String()})
112112
} else {
113-
display.AddRow([]string{dimg.id, dimg.name, string(dimg.size)})
113+
display.AddRow([]string{dimg.id, dimg.name, dimg.size.String()})
114114
}
115115
}
116116

0 commit comments

Comments
 (0)