- else if (strncasecmp ("Latency", option->key, strlen ("Latency")) == 0)
- {
- if (strcasecmp ("LatencyPercentile", option->key) == 0)
- status = latency_config_add_percentile ("tail", &cm.latency, option);
- else if (strcasecmp ("LatencyPercentileType", option->key) == 0)
- status = cf_util_get_string (option, &cm.latency.percentile_type);
- else if (strcasecmp ("LatencyRate", option->key) == 0)
- status = latency_config_add_rate ("tail", &cm.latency, option);
- else if (strcasecmp ("LatencyRateType", option->key) == 0)
- status = cf_util_get_string (option, &cm.latency.rates_type);
- else if (strcasecmp ("LatencyLower", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.lower);
- else if (strcasecmp ("LatencyUpper", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.upper);
- else if (strcasecmp ("LatencyAvg", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.avg);
- else
- {
- WARNING ("tail plugin: Option `%s' not allowed here.", option->key);
- status = -1;
- }
- }