Changeset 34b1855b257eca34f8d868d65d018475898b4ab2
- Timestamp:
- 05/31/12 03:26:41
(1 year 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
| r8ec2899 |
r34b1855 |
|
| 253 | 253 | if(json->saw_complex_type == 0x3) { |
|---|
| 254 | 254 | long double total = 0, cnt = 0; |
|---|
| 255 | | bool use_avg = false; |
|---|
| | 255 | noit_boolean use_avg = noit_false; |
|---|
| 256 | 256 | for(p=json->last_value;p;p=p->next) { |
|---|
| 257 | 257 | noit_stats_set_metric_coerce(json->check, json->stats, |
|---|
| … | … | |
| 263 | 263 | total += strtold(p->v, NULL); |
|---|
| 264 | 264 | cnt = cnt + 1; |
|---|
| 265 | | use_avg = true; |
|---|
| | 265 | use_avg = noit_true; |
|---|
| 266 | 266 | } |
|---|
| 267 | 267 | json->cnt++; |
|---|