Changeset 124 for trunk/src

Show
Ignore:
Timestamp:
09/20/10 09:43:01 (13 years ago)
Author:
andreu
Message:

ticket #44

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r122 r124  
    10621062                } else {  
    10631063                  /* here we'll make the choice that in multisampling mode, 
    1064                    * the virtual POP that represent the reste of world is  
    1065                    * in 1:10 packets mode */ 
     1064                   * the virtual POP that represent the reste of world will be 
     1065                   * recorded in 1:10 packets mode */ 
    10661066#if defined(MULTISAMPLING) 
    10671067                  ( 
     
    12311231                } 
    12321232#endif 
     1233              } else { 
     1234#if defined(MULTISAMPLING) 
     1235#if defined(MATRIX) 
     1236                  ( 
     1237                   ((struct POP *)(myPtrs->matrixPOP) 
     1238                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1239                    +((res->routerNb))))->pktsNb += agCache.pkts*myPtrs->currentRouterPtr->sampled/10;  
     1240                  ( 
     1241                   ((struct POP *)(myPtrs->matrixPOP) 
     1242                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1243                    +((res->routerNb))))->bytesNb += agCache.bytes*myPtrs->currentRouterPtr->sampled/10;  
     1244                  ( 
     1245                   ((struct POP *)(myPtrs->matrixPOP) 
     1246                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1247                    +((res->routerNb))))->flowNb++; 
     1248#endif 
     1249#else 
     1250#if defined(MATRIX) 
     1251                  ( 
     1252                   ((struct POP *)(myPtrs->matrixPOP) 
     1253                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1254                    +((res->routerNb))))->pktsNb += agCache.pkts;  
     1255                  ( 
     1256                   ((struct POP *)(myPtrs->matrixPOP) 
     1257                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1258                    +((res->routerNb))))->bytesNb += agCache.bytes;  
     1259                  ( 
     1260                   ((struct POP *)(myPtrs->matrixPOP) 
     1261                    +((ROUTER_INDEX_MAX-1)*ROUTER_INDEX_MAX) 
     1262                    +((res->routerNb))))->flowNb++; 
     1263#endif 
     1264#endif   
    12331265              } 
    12341266              if (res->sampling == 0