projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rrdtool plugin: Make sure "cache_timeout + random_variation" dosn't get negative.
[collectd.git]
/
src
/
gmond.c
diff --git
a/src/gmond.c
b/src/gmond.c
index
2ffc42a
..
8c774e5
100644
(file)
--- a/
src/gmond.c
+++ b/
src/gmond.c
@@
-719,7
+719,7
@@
static int mc_handle_metadata_msg (Ganglia_metadata_msg *msg) /* {{{ */
map->type, map->type_instance,
ds->ds_num);
if (se != NULL)
map->type, map->type_instance,
ds->ds_num);
if (se != NULL)
- se->vl.interval =
(int) msg_meta.metric.tmax
;
+ se->vl.interval =
TIME_T_TO_CDTIME_T (msg_meta.metric.tmax)
;
pthread_mutex_unlock (&staging_lock);
if (se == NULL)
pthread_mutex_unlock (&staging_lock);
if (se == NULL)