From e25f2a3ec0c4f129acbd8e67c0476330e7d41f38 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Thu, 12 Oct 2017 15:08:25 +0300 Subject: [PATCH 1/2] Fix invalid API URL reference in swagger.yml --- api/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 1a58e0f115..f27aabf3a2 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -5238,7 +5238,7 @@ paths: schema: $ref: "#/definitions/ErrorResponse" tags: ["Image"] - /image/delta: + /images/delta: post: summary: "Create a delta" description: "Create a binary delta between two images." From 78f4c958c303c8bb6457f77afe2b4fc6163bbe1c Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Thu, 12 Oct 2017 15:08:51 +0300 Subject: [PATCH 2/2] Fix typo in identifier name --- daemon/create.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/create.go b/daemon/create.go index ed2b4bf8d9..c675eceb95 100644 --- a/daemon/create.go +++ b/daemon/create.go @@ -387,7 +387,7 @@ func (daemon *Daemon) DeltaCreate(deltaSrc, deltaDest string, outStream io.Write } statTotalSize := int64(0) - statDetlaSize := int64(0) + statDeltaSize := int64(0) for i, diffID := range dstImg.RootFS.DiffIDs { var ( @@ -500,7 +500,7 @@ func (daemon *Daemon) DeltaCreate(deltaSrc, deltaDest string, outStream io.Write if err != nil { return err } - statDetlaSize += deltaSize + statDeltaSize += deltaSize progress.Update(progressOutput, stringid.TruncateID(diffID.String()), "Delta complete") } @@ -531,8 +531,8 @@ func (daemon *Daemon) DeltaCreate(deltaSrc, deltaDest string, outStream io.Write } humanTotal := units.HumanSize(float64(statTotalSize)) - humanDelta := units.HumanSize(float64(statDetlaSize)) - deltaRatio := float64(statTotalSize) / float64(statDetlaSize) + humanDelta := units.HumanSize(float64(statDeltaSize)) + deltaRatio := float64(statTotalSize) / float64(statDeltaSize) if statTotalSize == 0 { deltaRatio = 1 }