if (matches[1] == endptr)
return (-1);
- if (data->ds_type & UTILS_MATCH_CF_GAUGE_LATENCY)
+ if (data->ds_type & UTILS_MATCH_CF_GAUGE_DIST)
{
latency_counter_add(data->latency, DOUBLE_TO_CDTIME_T(value));
data->values_num++;
user_data->ds_type = match_ds_type;
if ((match_ds_type & UTILS_MATCH_DS_TYPE_GAUGE)
- && (match_ds_type & UTILS_MATCH_CF_GAUGE_LATENCY))
+ && (match_ds_type & UTILS_MATCH_CF_GAUGE_DIST))
{
user_data->latency = latency_counter_create();
if (user_data->latency == NULL)
#define UTILS_MATCH_CF_GAUGE_INC 0x10
#define UTILS_MATCH_CF_GAUGE_ADD 0x20
#define UTILS_MATCH_CF_GAUGE_PERSIST 0x40
-#define UTILS_MATCH_CF_GAUGE_LATENCY 0x80
+#define UTILS_MATCH_CF_GAUGE_DIST 0x80
#define UTILS_MATCH_CF_COUNTER_SET 0x01
#define UTILS_MATCH_CF_COUNTER_ADD 0x02
user_data->interval = interval;
if ((ds_type & UTILS_MATCH_DS_TYPE_GAUGE)
- && (ds_type & UTILS_MATCH_CF_GAUGE_LATENCY))
+ && (ds_type & UTILS_MATCH_CF_GAUGE_DIST))
{
status = latency_config_copy(&user_data->latency_config, latency_cfg);
if (status != 0)
}
else if (strcasecmp ("Distribution", ds_type) == 0)
{
- cm->flags = UTILS_MATCH_DS_TYPE_GAUGE | UTILS_MATCH_CF_GAUGE_LATENCY;
+ cm->flags = UTILS_MATCH_DS_TYPE_GAUGE | UTILS_MATCH_CF_GAUGE_DIST;
int status = latency_config (&cm->latency, ci, "tail");
if (status != 0)