summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57fcbb1)
raw | patch | inline | side by side (parent: 57fcbb1)
author | Florian Forster <octo@collectd.org> | |
Thu, 11 Jul 2013 12:58:32 +0000 (14:58 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Jul 2013 12:58:32 +0000 (14:58 +0200) |
The StatsD by etsy is case sensitive, so we should do the same. Also, strcmp()
should have better performance than strcasecmp().
should have better performance than strcasecmp().
src/statsd.c | patch | blob | history |
diff --git a/src/statsd.c b/src/statsd.c
index 364b97d7c5838cd4625d55065054f25fe3d2c73f..4a58f41067ee795def9a53bd9686782738808265 100644 (file)
--- a/src/statsd.c
+++ b/src/statsd.c
{
pthread_mutex_lock (&metrics_lock);
if (metrics_tree == NULL)
- metrics_tree = c_avl_create ((void *) strcasecmp);
+ metrics_tree = c_avl_create ((void *) strcmp);
if (!network_thread_running)
{