diff --git a/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java b/src/main/java/net/floodlightcontroller/statistics/web/BandwidthResource.java index 291620a5ead271ae780f733e9d39551623168a1d..ec8365b30e382dceacda37f8f4c5bb138b6c4dcf 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());