-
Bug
-
Resolution: Fixed
-
Minor
-
None
In the file PerformanceReport.java, where the calculation of get90Line is done, we have:
result = allSamples.get((int) (allSamples.size() * .9)).getDuration();
I think we should have:
result = allSamples.get(((int) (allSamples.size() * .9)) -1).getDuration();
Because actually we get the next value. With this way of doing it, if we want the max, multiplying by 1, we'll get an IndexOutOfBoundsException
result = allSamples.get((int) (allSamples.size() * 1)).getDuration();
it is like doing:
allSamples.get(allSamples.size())