lower error rate bound for better performance
This commit is contained in:
parent
9ed056295d
commit
71f47abe3b
1 changed files with 4 additions and 1 deletions
|
@ -207,6 +207,9 @@ void CNetBufWithStats::UpdateAutoSetting()
|
||||||
int iCurDecision = 0; // dummy initialization
|
int iCurDecision = 0; // dummy initialization
|
||||||
bool bDecisionFound = false;
|
bool bDecisionFound = false;
|
||||||
|
|
||||||
|
// definition of the error bound
|
||||||
|
const double dErrorBound = 0.0025;
|
||||||
|
|
||||||
|
|
||||||
// Get error rate decision -------------------------------------------------
|
// Get error rate decision -------------------------------------------------
|
||||||
// Use a specified error bound to identify the best buffer size for the
|
// Use a specified error bound to identify the best buffer size for the
|
||||||
|
@ -215,7 +218,7 @@ void CNetBufWithStats::UpdateAutoSetting()
|
||||||
for ( int i = 0; i < NUM_STAT_SIMULATION_BUFFERS - 1; i++ )
|
for ( int i = 0; i < NUM_STAT_SIMULATION_BUFFERS - 1; i++ )
|
||||||
{
|
{
|
||||||
if ( ( !bDecisionFound ) &&
|
if ( ( !bDecisionFound ) &&
|
||||||
( ErrorRateStatistic[i].GetAverage() <= 0.005 ) )
|
( ErrorRateStatistic[i].GetAverage() <= dErrorBound ) )
|
||||||
{
|
{
|
||||||
iCurDecision = viBufSizesForSim[i];
|
iCurDecision = viBufSizesForSim[i];
|
||||||
bDecisionFound = true;
|
bDecisionFound = true;
|
||||||
|
|
Loading…
Reference in a new issue