Skip to content

Commit

Permalink
Merge pull request containers#5013 from vrothberg/fix-4916
Browse files Browse the repository at this point in the history
history: fix size computing
  • Loading branch information
openshift-merge-robot authored Jan 29, 2020
2 parents 8241c1a + c9fb6d1 commit 955866c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpod/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,8 @@ func (i *Image) History(ctx context.Context) ([]*History, error) {
id := "<missing>"
if x == numHistories {
id = i.ID()
} else if layer != nil {
}
if layer != nil {
if !oci.History[x].EmptyLayer {
size = layer.UncompressedSize
}
Expand Down

0 comments on commit 955866c

Please sign in to comment.