commit | 57de6cd3afdcf919322f3da6ab9ff350cd9326a1 | [log] [tgz] |
---|---|---|
author | Satish K <satishk@huawei.com> | Fri Nov 27 12:49:01 2015 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Dec 02 19:39:44 2015 +0000 |
tree | 04f349fe00f1f59635d8d9f7b8700b030dd9f1f7 | |
parent | d471262d24d1940921e1805d06ef302a8ed11c4d [diff] |
IntentPerfCollector Synch issue fix Change-Id: I7bd56459476dd87e6c29127b4e17366c23416768
diff --git a/apps/test/intent-perf/src/main/java/org/onosproject/intentperf/IntentPerfCollector.java b/apps/test/intent-perf/src/main/java/org/onosproject/intentperf/IntentPerfCollector.java index 8c160e8..cae5455 100644 --- a/apps/test/intent-perf/src/main/java/org/onosproject/intentperf/IntentPerfCollector.java +++ b/apps/test/intent-perf/src/main/java/org/onosproject/intentperf/IntentPerfCollector.java
@@ -106,7 +106,7 @@ /** * Clears all previously accumulated data. */ - public void clearSamples() { + public synchronized void clearSamples() { newestTime = 0; overall = new Sample(0, nodes.length); current = new Sample(0, nodes.length);