Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Chouinard2012-07-17 15:34:06 -0400
committerFrancois Chouinard2012-07-17 15:34:06 -0400
commit6fb8338f8388d362456c229c2ccee874160ac746 (patch)
tree4f5d5325e8096b016845e068a773d67a5f904d0a
parent08a796398f14b860e6c2343b77b55ea73607f008 (diff)
downloadorg.eclipse.linuxtools-6fb8338f8388d362456c229c2ccee874160ac746.tar.gz
org.eclipse.linuxtools-6fb8338f8388d362456c229c2ccee874160ac746.tar.xz
org.eclipse.linuxtools-6fb8338f8388d362456c229c2ccee874160ac746.zip
Normalize current event timestamp (Bug3984982)
Change-Id: If0fa17f9203ffb234514f86353c065c894fdac8b Signed-off-by: Francois Chouinard <fchouinard@gmail.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java
index 663b9874ae..0be433f767 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java
@@ -69,8 +69,8 @@ public class HistogramCurrentTimeControl extends HistogramTextControl {
TmfExperiment<?> exp = TmfExperiment.getCurrentExperiment();
if (exp != null) {
TmfTimeRange range = exp.getTimeRange();
- long startTime = range.getStartTime().getValue();
- long endTime = range.getEndTime().getValue();
+ long startTime = range.getStartTime().normalize(0, -9).getValue();
+ long endTime = range.getEndTime().normalize(0, -9).getValue();
if (value < startTime) {
value = startTime;
} else if (value > endTime) {

Back to the top