From cec0926c5cdbd44db215e89f52c52175376db507 Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Thu, 22 May 2014 14:53:54 -0400 Subject: [PATCH] fix(pkg/http_client): Printf is smarter than you think Printf determines what the duration unit is and prints it accordingly. --- pkg/http_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http_client.go b/pkg/http_client.go index 60de072..f32a205 100644 --- a/pkg/http_client.go +++ b/pkg/http_client.go @@ -111,7 +111,7 @@ func (h *HttpClient) Get(rawurl string) ([]byte, error) { duration = h.MaxBackoff } - log.Printf("Sleeping for %d seconds", duration) + log.Printf("Sleeping for %v...", duration) time.Sleep(duration) }