Chromium Code Reviews
DescriptionFix the task overlap check in maxExpectedQueueingTimeInSlidingWindow.
The maxExpectedQueueingTimeInSlidingWindow function throws an exception
if the tasks provided to at as arguments overlap.
Due to floating-point precision errors the test for overlap can produce
false positive results. We used Number.EPSILON (~2e-16) to account for
precision errors when comparing the task endpoints, but the epsilon
turned out to be too small.
This patch bumps up the epsilon to 1e-3.
BUG=chromium:625701
#
Review-Url: https://codereview.chromium.org/2713043003
Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/877b7469adc4b2994454cffbfc21a38454f76235
Patch Set 1 #Patch Set 2 : Add tests #
Total comments: 2
Messages
Total messages: 13 (5 generated)
|
||||||||||||||||||||||||||||