1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix typo for download and upload retry messages

Signed-off-by: Jay <jay@imjching.com>
This commit is contained in:
Jay 2016-03-04 23:15:44 +08:00
parent b7aae84b5f
commit f8d14bd4c6
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
selectLoop: selectLoop:
for { for {
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d seconds", delay) progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d second%s", delay, (map[bool]string{true: "s"})[delay != 1])
select { select {
case <-ticker.C: case <-ticker.C:
delay-- delay--

View file

@ -141,7 +141,7 @@ func (lum *LayerUploadManager) makeUploadFunc(descriptor UploadDescriptor) DoFun
selectLoop: selectLoop:
for { for {
progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d seconds", delay) progress.Updatef(progressOutput, descriptor.ID(), "Retrying in %d second%s", delay, (map[bool]string{true: "s"})[delay != 1])
select { select {
case <-ticker.C: case <-ticker.C:
delay-- delay--