Skip to content

Commit

Permalink
LiveThroughputFilter: Fixed packet length, it should be in bits.
Browse files Browse the repository at this point in the history
The throughput filter output signal is in bps.
  • Loading branch information
levy committed Nov 20, 2024
1 parent 37cc2e1 commit 719f05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/common/ResultFilters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ void LiveThroughputFilter::receiveSignal(cResultFilter *prev, simtime_t_cref t,
void LiveThroughputFilter::receiveSignal(cResultFilter *prev, simtime_t_cref t, cObject *object, cObject *details)
{
if (auto packet = dynamic_cast<cPacket *>(object))
receiveSignal(prev, t, packet->getByteLength(), details);
receiveSignal(prev, t, packet->getBitLength(), details);
}

void LiveThroughputFilter::timerExpired()
Expand Down

0 comments on commit 719f05c

Please sign in to comment.