Skip to content
Snippets Groups Projects
Commit 53746684 authored by Florian Fittkau's avatar Florian Fittkau
Browse files

runtime fix

parent 3ae87fc1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment