From 71f47abe3b161ef77df53a102b7369fc6d186aad Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Fri, 17 Jun 2011 21:15:18 +0000 Subject: [PATCH] lower error rate bound for better performance --- src/buffer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/buffer.cpp b/src/buffer.cpp index 13c9e441..994abcab 100755 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -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;