# HG changeset patch # User daurnimator # Date 1403553933 14400 # Node ID e96ac4291b363765d83ae9131f9dad4c122cc8eb # Parent 56c394b9e60d31ebc12581ff8d8b4c4b55e078e5 mod_statsd: Clean off colons (:) diff -r 56c394b9e60d -r e96ac4291b36 mod_statsd/mod_statsd.lua --- a/mod_statsd/mod_statsd.lua Mon Jun 23 20:22:19 2014 +0200 +++ b/mod_statsd/mod_statsd.lua Mon Jun 23 16:05:33 2014 -0400 @@ -15,7 +15,7 @@ sock:setpeername(options.hostname or "127.0.0.1", options.port or 8125) -- Metrics are namespaced by ".", and seperated by newline -function clean(s) return (s:gsub("[%.\n]", "_")) end +function clean(s) return (s:gsub("[%.:\n]", "_")) end -- A 'safer' send function to expose function send(s) return sock:send(s) end