Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramCurrentTimeControl.java4
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramRequest.java2
2 files changed, 3 insertions, 3 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) {
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramRequest.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramRequest.java
index 433f080d94..505740f8af 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramRequest.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramRequest.java
@@ -83,7 +83,7 @@ public class HistogramRequest extends TmfEventRequest<ITmfEvent> {
public void handleData(ITmfEvent event) {
super.handleData(event);
if (event != null) {
- long timestamp = event.getTimestamp().getValue();
+ long timestamp = event.getTimestamp().normalize(0, -9).getValue();
fHistogram.countEvent(getNbRead(), timestamp);
}
}

Back to the top