From b220cdfe3b5b1b153c01efc018fe4e2532419708 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jul 2015 23:31:43 +0000 Subject: [PATCH] time duration should be nano seconds, gccgo treats it as zero Signed-off-by: Srini Brahmaroutu --- plugins/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/client.go b/plugins/client.go index dab9be0..f30f05e 100644 --- a/plugins/client.go +++ b/plugins/client.go @@ -102,5 +102,5 @@ func backoff(retries int) time.Duration { } func abort(start time.Time, timeOff time.Duration) bool { - return timeOff+time.Since(start) > time.Duration(defaultTimeOut)*time.Second + return timeOff+time.Since(start) >= time.Duration(defaultTimeOut)*time.Second }