Software / code / prosody-modules
Changeset
1447:e96ac4291b36
mod_statsd: Clean off colons (:)
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Mon, 23 Jun 2014 16:05:33 -0400 |
| parents | 1444:56c394b9e60d |
| children | 1448:d722a4defea7 |
| files | mod_statsd/mod_statsd.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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