Fix PacketSet parameters' calculation when sending bursts so that actual transmit rate matches configured rate
Fixes issue #157
This commit is contained in:
parent
32766c6e8e
commit
449facd119
@ -197,10 +197,8 @@ void AbstractPort::updatePacketListSequential()
|
||||
case OstProto::StreamControl::e_su_bursts:
|
||||
burstSize = streamList_[i]->burstSize();
|
||||
x = AbstractProtocol::lcm(frameVariableCount, burstSize);
|
||||
n = ulong(burstSize * streamList_[i]->burstRate()
|
||||
* streamList_[i]->numBursts()) / x;
|
||||
y = ulong(burstSize * streamList_[i]->burstRate()
|
||||
* streamList_[i]->numBursts()) % x;
|
||||
n = ulong(burstSize * streamList_[i]->numBursts()) / x;
|
||||
y = ulong(burstSize * streamList_[i]->numBursts()) % x;
|
||||
if (streamList_[i]->burstRate() > 0)
|
||||
{
|
||||
ibg = 1e9/double(streamList_[i]->burstRate());
|
||||
|
Loading…
Reference in New Issue
Block a user