Commit 53746684 authored by Florian Fittkau's avatar Florian Fittkau

runtime fix

parent 3ae87fc1
......@@ -94,10 +94,9 @@ class TraceReconstructionBuffer {
if (!stack.isEmpty()) {
final AbstractBeforeEventRecord beforeEvent = stack.pop();
if (beforeEvent.getRuntimeStatisticInformation() == null) {
if (beforeEvent.getRuntimeStatisticInformation().getAverage() < 0) {
final long time = abstractAfterEventRecord.getMethodDuration();
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(
1, time, time * time));
beforeEvent.getRuntimeStatisticInformation().set(1, time, time * time);
}
}
} else if (event instanceof AbstractAfterFailedEventRecord) {
......@@ -105,10 +104,9 @@ class TraceReconstructionBuffer {
if (!stack.isEmpty()) {
final AbstractBeforeEventRecord beforeEvent = stack.pop();
if (beforeEvent.getRuntimeStatisticInformation() == null) {
if (beforeEvent.getRuntimeStatisticInformation().getAverage() < 0) {
final long time = abstractAfterFailedEventRecord.getMethodDuration();
beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(
1, time, time * time));
beforeEvent.getRuntimeStatisticInformation().set(1, time, time * time);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment