diff --git a/src/main/java/net/floodlightcontroller/statistics/StatisticsCollector.java b/src/main/java/net/floodlightcontroller/statistics/StatisticsCollector.java index 58ce31b0c3c2a8f727385b4675fc7d838915f5df..e329f2b5d87076a8a34d0a14682af79982f2d0cc 100644 --- a/src/main/java/net/floodlightcontroller/statistics/StatisticsCollector.java +++ b/src/main/java/net/floodlightcontroller/statistics/StatisticsCollector.java @@ -124,17 +124,6 @@ public class StatisticsCollector implements IFloodlightModule, IStatisticsServic } } - /* This is the original Code with Bugs */ -// protected long getSpeed(NodePortTuple npt) { -// IOFSwitch sw = switchService.getSwitch(npt.getNodeId()); -// long speed = 0; -// if(sw != null){ -// speed = sw.getPort(npt.getPortId()).getCurrSpeed(); -// } -// return speed; -// } - - /* Fix bug from here */ protected long getSpeed(NodePortTuple npt) { IOFSwitch sw = switchService.getSwitch(npt.getNodeId()); long speed = 0; diff --git a/src/test/java/net/floodlightcontroller/statistics/StatisticsTest.java b/src/test/java/net/floodlightcontroller/statistics/StatisticsTest.java index 5c20dcb921e491a2a83e86038e175d3f5e91a405..177ecbb2cdb68157206cab57d1382930183d04f8 100644 --- a/src/test/java/net/floodlightcontroller/statistics/StatisticsTest.java +++ b/src/test/java/net/floodlightcontroller/statistics/StatisticsTest.java @@ -72,7 +72,7 @@ public class StatisticsTest extends FloodlightTestCase { * A Collection of Junit Test with various "inputFactory" and "expectedSpeed" * @return */ - @Parameterized.Parameters + @Parameterized.Parameters(name = "Test {index}: {0}, Port Speed is {1}") public static Iterable<Object[]> testData() { return Arrays.asList(new Object[][] { { OFVersion.OF_11, 100L },