projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57fcbb1
)
statsd plugin: Make metric names case-sensitive.
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().
src/statsd.c
patch
|
blob
|
history
diff --git
a/src/statsd.c
b/src/statsd.c
index
364b97d
..
4a58f41
100644
(file)
--- a/
src/statsd.c
+++ b/
src/statsd.c
@@
-643,7
+643,7
@@
static int statsd_init (void) /* {{{ */
{
pthread_mutex_lock (&metrics_lock);
if (metrics_tree == NULL)
- metrics_tree = c_avl_create ((void *) strc
asec
mp);
+ metrics_tree = c_avl_create ((void *) strcmp);
if (!network_thread_running)
{