From 08bfe3dae2d6b5c61eac2b3ce0f602a20228c6d0 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 13 Jun 2011 08:16:46 +0000 Subject: [PATCH] use a maximum of 16 buffers for auto buffer function --- src/buffer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/buffer.cpp b/src/buffer.cpp index 45a4a1d1..ddc07a70 100755 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -125,10 +125,10 @@ CNetBufWithStats::CNetBufWithStats() : viBufSizesForSim[6] = 8; viBufSizesForSim[7] = 9; viBufSizesForSim[8] = 10; - viBufSizesForSim[9] = 12; - viBufSizesForSim[10] = 14; - viBufSizesForSim[11] = 17; - viBufSizesForSim[12] = 20; + viBufSizesForSim[9] = 11; + viBufSizesForSim[10] = 12; + viBufSizesForSim[11] = 14; + viBufSizesForSim[12] = 16; // set all simulation buffers in simulation mode for ( int i = 0; i < NUM_STAT_SIMULATION_BUFFERS; i++ ) @@ -209,7 +209,7 @@ int CNetBufWithStats::GetAutoSetting() void CNetBufWithStats::StoreAllSimAverages() { - FILE* pFile = fopen ( "c:\\temp\\test.dat", "w" ); + FILE* pFile = fopen ( "c:\\temp\\test1.dat", "w" ); for ( int i = 0; i < NUM_STAT_SIMULATION_BUFFERS - 1; i++ ) @@ -230,5 +230,5 @@ for ( int i = 0; i < iLen; i++ ) fclose ( pFile ); // scilab: -// close;x=read('c:/temp/test.dat',-1,13);plot2d([2,3,4,5,6,7,8,9,10,12,14,17,20], x, style=-1 , logflag = 'nl');plot2d([2 20],[1 1]*0.01);plot2d([2 20],[1 1]*0.005);x +// close;x=read('c:/temp/test.dat',-1,13);plot2d([2,3,4,5,6,7,8,9,10,11,12,14,16], x, style=-1 , logflag = 'nl');plot2d([2 20],[1 1]*0.01);plot2d([2 20],[1 1]*0.005);x }