From bb4f8ea4bc0967686f347f6935b190dea8e4cb0c Mon Sep 17 00:00:00 2001
From: Lei Xu <x.rayyle@gmail.com>
Date: Tue, 16 Aug 2016 14:45:05 -0700
Subject: [PATCH] fix concurrency issue in Statistics

---
 .../floodlightcontroller/statistics/web/BandwidthResource.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java b/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java
index 291620a5e..ec8365b30 100644
--- a/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java
+++ b/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java
@@ -70,7 +70,7 @@ public class BandwidthResource extends ServerResource {
                 //fix concurrency scenario
                 IOFSwitch sw = switchService.getSwitch(dpid);
                 if (sw == null){
-                		return Collections.singletonMap("ERROR", "Switch was not online: " + dpid);
+                	return Collections.singletonMap("ERROR", "Switch was not online: " + dpid);
                 }
                 for (OFPortDesc pd : sw.getPorts()) { /* do specific DPID; do all ports */
                     SwitchPortBandwidth spb = statisticsService.getBandwidthConsumption(dpid, pd.getPortNo());
-- 
GitLab