projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectd-tg: Fix unintentional cast from double to time_t.
[collectd.git]
/
src
/
threshold.c
diff --git
a/src/threshold.c
b/src/threshold.c
index
8dcb711
..
38c7efb
100644
(file)
--- a/
src/threshold.c
+++ b/
src/threshold.c
@@
-553,7
+553,7
@@
static int ut_report_state (const data_set_t *ds,
{
gauge_t value;
gauge_t sum;
{
gauge_t value;
gauge_t sum;
-
in
t i;
+
size_
t i;
sum = 0.0;
for (i = 0; i < vl->values_len; i++)
sum = 0.0;
for (i = 0; i < vl->values_len; i++)
@@
-701,7
+701,7
@@
static int ut_check_one_threshold (const data_set_t *ds,
{ /* {{{ */
int ret = -1;
int ds_index = -1;
{ /* {{{ */
int ret = -1;
int ds_index = -1;
-
in
t i;
+
size_
t i;
gauge_t values_copy[ds->ds_num];
memcpy (values_copy, values, sizeof (values_copy));
gauge_t values_copy[ds->ds_num];
memcpy (values_copy, values, sizeof (values_copy));