X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgmond.c;h=8c774e536ff9c23e112c3e440d18aa15284478c4;hb=f1b5b8611d87a7904c31ae4b28ea47f11f3c38b9;hp=3357ea0b35ae73d3323324c6ea9de3db8431b858;hpb=fa9fd186f4e09c24a02d9541c2409d21bf282087;p=collectd.git diff --git a/src/gmond.c b/src/gmond.c index 3357ea0b..8c774e53 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -542,9 +542,9 @@ static int staging_entry_update (const char *host, const char *name, /* {{{ */ else if (ds_type == DS_TYPE_GAUGE) se->vl.values[ds_index].gauge = value.gauge; else if (ds_type == DS_TYPE_DERIVE) - se->vl.values[ds_index].DERIVE += value.derive; + se->vl.values[ds_index].derive += value.derive; else if (ds_type == DS_TYPE_ABSOLUTE) - se->vl.values[ds_index].ABSOLUTE = value.absolute; + se->vl.values[ds_index].absolute = value.absolute; se->flags |= (0x01 << ds_index); @@ -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) - 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)