We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f8bc4 commit 34dff0fCopy full SHA for 34dff0f
internal/driverutil/operation.go
@@ -51,7 +51,7 @@ func CalculateMaxTimeMS(ctx context.Context, rttMin time.Duration) (int64, bool)
51
52
// Always round up to the next millisecond value so we never truncate the calculated
53
// maxTimeMS value (e.g. 400 microseconds evaluates to 1ms, not 0ms).
54
- maxTimeMS := int64((remainingTimeout - rttMin) / time.Millisecond)
+ maxTimeMS := int64((remainingTimeout - rttMin + time.Millisecond - 1) / time.Millisecond)
55
if maxTimeMS <= 0 {
56
return 0, false
57
}
0 commit comments