diff --git a/src/simulator/memorysystem/Cache.java b/src/simulator/memorysystem/Cache.java index 43c64bc..063c465 100755 --- a/src/simulator/memorysystem/Cache.java +++ b/src/simulator/memorysystem/Cache.java @@ -429,6 +429,11 @@ public class Cache extends SimulationElement { event.update(0); event.update(this, this); this.getPort().put(event); + //to correct the double counting of stats + noOfAccesses--; + noOfRequests--; + noOfWritesReceived--; + hits--; } else {