Changeset 34b1855b257eca34f8d868d65d018475898b4ab2

Show
Ignore:
Timestamp:
05/31/12 03:26:41 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1338434801 -0400
git-parent:

[8ec2899c1ccf6cfc70b418c6e91761e24c5de8cd]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1338434801 -0400
Message:

use out noit_boolean over the c99 one

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/httptrap.c

    r8ec2899 r34b1855  
    253253  if(json->saw_complex_type == 0x3) { 
    254254    long double total = 0, cnt = 0; 
    255     bool use_avg = false; 
     255    noit_boolean use_avg = noit_false; 
    256256    for(p=json->last_value;p;p=p->next) { 
    257257      noit_stats_set_metric_coerce(json->check, json->stats, 
     
    263263        total += strtold(p->v, NULL); 
    264264        cnt = cnt + 1; 
    265         use_avg = true; 
     265        use_avg = noit_true; 
    266266      } 
    267267      json->cnt++;