From 2c2fcd6bfa1964f0ffba546d0895fb855e064c02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Mon, 29 Sep 2014 12:40:59 -0400 Subject: [PATCH 1/1] TMF: Do not add synchronization data for traces from the same host MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ia45d7568a80a731672cee1d33211451d55a5c922 Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/34067 Tested-by: Hudson CI Reviewed-by: Marc-Andre Laperle Tested-by: Marc-Andre Laperle --- .../core/synchronization/SyncAlgorithmFullyIncremental.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/synchronization/SyncAlgorithmFullyIncremental.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/synchronization/SyncAlgorithmFullyIncremental.java index d9bf05670f..540d57d2b7 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/synchronization/SyncAlgorithmFullyIncremental.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/synchronization/SyncAlgorithmFullyIncremental.java @@ -87,8 +87,10 @@ public class SyncAlgorithmFullyIncremental extends SynchronizationAlgorithm { // The ConvexHull seems to be created on the fly in processMatch(). for (int i = 0; i < traceArr.length; i++) { for (int j = i + 1; j < traceArr.length; j++) { - ConvexHull algo = new ConvexHull(traceArr[i].getHostId(), traceArr[j].getHostId()); - fSyncs.add(algo); + if (!traceArr[i].getHostId().equals(traceArr[j].getHostId())) { + ConvexHull algo = new ConvexHull(traceArr[i].getHostId(), traceArr[j].getHostId()); + fSyncs.add(algo); + } } } } -- 2.34.1