time duration should be nano seconds, gccgo treats it as zero

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
root 2015-07-09 23:31:43 +00:00
parent b39c330a18
commit 6c4e14b3e2

View file

@ -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
}