Skip to content
Snippets Groups Projects
Commit 595aeadf authored by QingWang0909's avatar QingWang0909
Browse files

removed all the old commented-out code.

parent d6816b9c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment