Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java')
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
index 54f4e892d0..ba4b9c3489 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
@@ -563,13 +563,9 @@ public class TmfStatisticsViewer extends TmfViewer {
protected void modelIncomplete(boolean isGlobalRequest) {
if (isGlobalRequest) { // Clean the global statistics
/*
- * The data is invalid and shall be removed to refresh upon next
- * selection
+ * No need to reset the global number of events, since the index of
+ * the last requested event is known.
*/
- Object input = getInput();
- if (input instanceof TmfStatisticsTreeNode) {
- TmfStatisticsTreeRootFactory.removeStatTreeRoot(getTreeID());
- }
resetUpdateSynchronization();
sendPendingUpdate();
} else { // Clean the partial statistics

Back to the top