Changeset 51

Show
Ignore:
Timestamp:
09/07/07 13:18:42 (15 years ago)
Author:
andreu
Message:

comparaison on field 1 (flow size in bytes) in dataFlowSet.c (comparaison more or less 5 percent.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/dataFlowSet.c

    r50 r51  
    317317              if (pftmp->fieldType==1){ 
    318318                agCache.bytes = *((unsigned long*)&buffer4); 
    319                 if ((((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.lvalue)  
    320                     == (*((unsigned long*)&buffer4)) ) 
     319                if (  
     320                    ((((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.lvalue) + ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.lvalue)*10/100)) 
     321                    <= (*((unsigned long*)&buffer4))  
     322                     && 
     323                    ((((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.lvalue) - ( (((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->value->stor.lvalue)*10/100)) 
     324                     >= (*((unsigned long*)&buffer4))  
     325                    ) 
    321326                  { 
    322327                    ((RuleDefPtr)(*(myPtrs->rulesAddressPtr+pos)))->check = 1;