alshabib

getprevious should fetch the previous stats from the store

Change-Id: Ia954e128d2503e4e787d496385c456ff249fc139
...@@ -208,7 +208,7 @@ public class StatisticManager implements StatisticService { ...@@ -208,7 +208,7 @@ public class StatisticManager implements StatisticService {
208 * @return set of flow entries 208 * @return set of flow entries
209 */ 209 */
210 private Set<FlowEntry> getPreviousStatistic(ConnectPoint connectPoint) { 210 private Set<FlowEntry> getPreviousStatistic(ConnectPoint connectPoint) {
211 - Set<FlowEntry> stats = statisticStore.getCurrentStatistic(connectPoint); 211 + Set<FlowEntry> stats = statisticStore.getPreviousStatistic(connectPoint);
212 if (stats == null) { 212 if (stats == null) {
213 return Collections.emptySet(); 213 return Collections.emptySet();
214 } else { 214 } else {
......