Skip to content

Commit

Permalink
PacketQueueBase: Fixed counting push operations on the queue.
Browse files Browse the repository at this point in the history
The text displayed above the queue submodule showed 0 push operations and
non-zero pull operations. When the packetPushed signal was split into
packetPushStarted/packetPushEnded in PacketQueue, the statistic calculation
was not updated.
  • Loading branch information
levy committed Sep 1, 2023
1 parent ac9375b commit 45b8cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/queueing/base/PacketQueueBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Packet *PacketQueueBase::dequeuePacket()

void PacketQueueBase::emit(simsignal_t signal, cObject *object, cObject *details)
{
if (signal == packetPushedSignal)
if (signal == packetPushedSignal || signal == packetPushStartedSignal)
numPushedPackets++;
else if (signal == packetPulledSignal)
numPulledPackets++;
Expand Down

0 comments on commit 45b8cdb

Please sign in to comment.