Changeset cad43821ea8f313cdf28f0ac7531ab25a01a634f

Show
Ignore:
Timestamp:
01/30/10 20:57:40 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1264885060 +0000
git-parent:

[26c29f1454bd8b23d96b031bb7433ad98fbed718]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1264885060 +0000
Message:

fixes #247

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_conf_checks.c

    r8ad126b rcad4382  
    500500        while(noit_hash_next(&c->metrics, &iter, &k, &klen, &data)) { 
    501501          char buff[256]; 
     502          noit_boolean filtered; 
    502503          noit_stats_snprint_metric(buff, sizeof(buff), (metric_t *)data); 
    503           nc_printf(ncct, "   %s\n", buff); 
     504          filtered = !noit_apply_filterset(check->filterset, check, (metric_t *)data); 
     505          nc_printf(ncct, "  %c%s\n", filtered ? '*' : ' ', buff); 
    504506        } 
    505507      } 
  • src/noit_filters.c

    r75ee62d rcad4382  
    217217   */ 
    218218  void *vfs; 
    219   if(!filtersets || !filterset) return noit_true; 
     219  if(!filterset) return noit_true;   /* No filter */ 
     220  if(!filtersets) return noit_false; /* Couldn't possibly match */ 
    220221 
    221222  LOCKFS(); 
     
    236237  } 
    237238  UNLOCKFS(); 
    238   return noit_true; 
     239  return noit_false; 
    239240} 
    240241