Changeset 61 for trunk/src/renetcolAgg.c

Show
Ignore:
Timestamp:
10/26/07 10:25:49 (15 years ago)
Author:
andreu
Message:

tickets 12,19 & 20 closed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/renetcolAgg.c

    r60 r61  
    5353  static char name[2048]; 
    5454  static char ipStr[24]; 
     55#if defined(MATRIX) && defined(IPV4AGGIDR) 
    5556  static char indexStr[24]; 
     57#endif 
    5658  static char asStr[7]; 
    5759  static char createstr[2048]; 
     
    233235        } 
    234236        /* ACCOUNTING for prefixV4SubnetTab */ 
    235         for (i=0; i<shmForAgg->v4PrefixNb; i++){ 
     237        for (i=0; i<shmForAgg->v4SubnetNb; i++){ 
    236238          /* HERE create or update RRD FILE */ 
    237239          if (shmForAgg->prefixV4SubnetTab[index][i].sampling != 0) { 
     
    630632          shmForAgg->prefixV4Tab[index][i].thirdCoSOUT = 0; 
    631633          shmForAgg->prefixV4Tab[index][i].fourthCoSOUT = 0;  
    632  
     634        } 
     635        for (i=0; i<shmForAgg->v4SubnetNb; i++){         
    633636          shmForAgg->prefixV4SubnetTab[index][i].flowNbIN = 0; 
    634637          shmForAgg->prefixV4SubnetTab[index][i].bytesNbIN = 0;