bug fix related to double-counting of stats in caches with different read and write latencies
This commit is contained in:
parent
271f715f7c
commit
178dfd7a63
|
@ -429,6 +429,11 @@ public class Cache extends SimulationElement {
|
||||||
event.update(0);
|
event.update(0);
|
||||||
event.update(this, this);
|
event.update(this, this);
|
||||||
this.getPort().put(event);
|
this.getPort().put(event);
|
||||||
|
//to correct the double counting of stats
|
||||||
|
noOfAccesses--;
|
||||||
|
noOfRequests--;
|
||||||
|
noOfWritesReceived--;
|
||||||
|
hits--;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue