mirror of
https://github.com/containers/podman.git
synced 2025-07-04 18:27:33 +08:00
Merge pull request #5013 from vrothberg/fix-4916
history: fix size computing
This commit is contained in:
@ -831,7 +831,8 @@ func (i *Image) History(ctx context.Context) ([]*History, error) {
|
|||||||
id := "<missing>"
|
id := "<missing>"
|
||||||
if x == numHistories {
|
if x == numHistories {
|
||||||
id = i.ID()
|
id = i.ID()
|
||||||
} else if layer != nil {
|
}
|
||||||
|
if layer != nil {
|
||||||
if !oci.History[x].EmptyLayer {
|
if !oci.History[x].EmptyLayer {
|
||||||
size = layer.UncompressedSize
|
size = layer.UncompressedSize
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user