diff --git a/src/main/java/net/floodlightcontroller/core/OFSwitchBase.java b/src/main/java/net/floodlightcontroller/core/OFSwitchBase.java index 56b9818022cb7cf255b7aa174237797adb102cf6..29ba1e4f24430a0313c3f8a8e4ab97779a3fb2b7 100644 --- a/src/main/java/net/floodlightcontroller/core/OFSwitchBase.java +++ b/src/main/java/net/floodlightcontroller/core/OFSwitchBase.java @@ -1304,9 +1304,11 @@ public abstract class OFSwitchBase implements IOFSwitch { */ @Override public boolean inputThrottled(OFMessage ofm) { + ctrSwitch.updateCounterNoFlush(); if (ofm.getType() != OFType.PACKET_IN) { return false; } + ctrSwitchPktin.updateCounterNoFlush(); // Compute current packet in rate messageCount++; if (messageCount % 100 == 0) {