(libT) #5267: 'speed limits wrap around too low number (~8589 kB/s)': patch by const

This commit is contained in:
Jordan Lee 2013-02-02 16:31:05 +00:00
parent 273e0a4504
commit c8e22c46d4
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ allocateBandwidth (tr_bandwidth * b,
if (b->band[dir].isLimited)
{
const uint64_t nextPulseSpeed = b->band[dir].desiredSpeed_Bps;
b->band[dir].bytesLeft = (unsigned int)(nextPulseSpeed * period_msec) / 1000u;
b->band[dir].bytesLeft = nextPulseSpeed * period_msec / 1000u;
}
/* add this bandwidth's peer, if any, to the peer pool */