lower error rate bound for better performance

This commit is contained in:
Volker Fischer 2011-06-17 21:15:18 +00:00
parent 9ed056295d
commit 71f47abe3b

View file

@ -207,6 +207,9 @@ void CNetBufWithStats::UpdateAutoSetting()
int iCurDecision = 0; // dummy initialization
bool bDecisionFound = false;
// definition of the error bound
const double dErrorBound = 0.0025;
// Get error rate decision -------------------------------------------------
// 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++ )
{
if ( ( !bDecisionFound ) &&
( ErrorRateStatistic[i].GetAverage() <= 0.005 ) )
( ErrorRateStatistic[i].GetAverage() <= dErrorBound ) )
{
iCurDecision = viBufSizesForSim[i];
bDecisionFound = true;