Merge pull request #14599 from brahmaroutu/gccgo_timeduration

time duration should be nano seconds, gccgo treats it as zero
This commit is contained in:
Alexander Morozov 2015-07-13 16:44:45 -06:00
commit 8bf98d0fc3

View file

@ -102,5 +102,5 @@ func backoff(retries int) time.Duration {
} }
func abort(start time.Time, timeOff time.Duration) bool { 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
} }