Minor error.

--HG--
extra : convert_revision : 514032e21c8861f20fcbcae7204e132088cc7dbc
This commit is contained in:
Vincentius Robby 2007-06-20 15:04:36 -04:00
parent d540dde5b4
commit 4a7bc06553

View file

@ -121,7 +121,7 @@ void Bus::occupyBus(PacketPtr pkt)
if (tickNextIdle < curTick) {
tickNextIdle = curTick;
if (tickNextIdle % clock != 0)
tickNextIdle -= (curTick % clock) + clock;
tickNextIdle = curTick - (curTick % clock) + clock;
}
// The packet will be sent. Figure out how long it occupies the bus, and