diff options
author | Matthew Khouzam | 2014-08-29 18:47:12 +0000 |
---|---|---|
committer | Alexandre Montplaisir | 2014-09-17 21:34:33 +0000 |
commit | f75549be4a79b1d9e3be4db3dcfad43bbb91526f (patch) | |
tree | d76040b759a3b7fa8b798e341d480fde4dc016db /lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf | |
parent | 336c593b813aaf086a38721852c5394d55f4ef9d (diff) | |
download | org.eclipse.linuxtools-f75549be4a79b1d9e3be4db3dcfad43bbb91526f.tar.gz org.eclipse.linuxtools-f75549be4a79b1d9e3be4db3dcfad43bbb91526f.tar.xz org.eclipse.linuxtools-f75549be4a79b1d9e3be4db3dcfad43bbb91526f.zip |
ctf: make CTFTraceReader access streams in consistent way
make all accesses pass by getTopStream() accessor
Change-Id: I41b21289d8d7bff7bcf56273545e2c1190af1eef
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32566
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Diffstat (limited to 'lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf')
-rw-r--r-- | lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java index 81d6f12a37..0590798ed0 100644 --- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java +++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java @@ -105,7 +105,7 @@ public class CTFTraceReader implements AutoCloseable { */ fStartTime = 0; if (hasMoreEvents()) { - fStartTime = fPrio.peek().getCurrentEvent().getTimestamp(); + fStartTime = getTopStream().getCurrentEvent().getTimestamp(); setEndTime(fStartTime); } } @@ -518,7 +518,7 @@ public class CTFTraceReader implements AutoCloseable { * */ public boolean isLive() { - return fPrio.peek().isLive(); + return getTopStream().isLive(); } @Override |