alshabib

getprevious should fetch the previous stats from the store

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