Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Fix PacketSet parameters' calculation when sending bursts so that act…
Browse files Browse the repository at this point in the history
…ual transmit rate matches configured rate

Fixes issue #157
  • Loading branch information
pstavirs committed Sep 8, 2015
1 parent 32766c6 commit 449facd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/abstractport.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 449facd

Please sign in to comment.