Consider time scale when creating lost events for CTF
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Fri, 11 Nov 2016 03:02:11 +0000 (22:02 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Fri, 11 Nov 2016 18:39:08 +0000 (13:39 -0500)
Change-Id: Ifd1523e6b23652c609e9774e2c9b7ce1ef67bac1
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84850
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEventFactory.java

index e27e6b63245c8118bfe08b21a28249c368d88a35..636068f7ee2919653173c411ec89c40ec521677c 100644 (file)
@@ -143,7 +143,7 @@ public class CtfTmfEventFactory {
         long nbLostEvents = ((IntegerDefinition) nbLostEventsDef).getValue();
         long duration = ((IntegerDefinition) durationDef).getValue();
         ITmfTimestamp timestampEnd = trace.createTimestamp(
-                trace.timestampCyclesToNanos(ts) + duration);
+                trace.timestampCyclesToNanos(ts) + trace.timestampCyclesToNanos(duration - trace.getOffset()));
 
         CtfTmfLostEvent lostEvent = new CtfTmfLostEvent(trace,
                 ITmfContext.UNKNOWN_RANK,
This page took 0.040012 seconds and 5 git commands to generate.