diff --git a/plugins/carbon/carbon.c b/plugins/carbon/carbon.c index df9b58c4..6553c9a9 100644 --- a/plugins/carbon/carbon.c +++ b/plugins/carbon/carbon.c @@ -52,6 +52,7 @@ int carbon_opt(int i, char *optarg) { void carbon_post_init() { + int i; struct uwsgi_string_list *usl = u_carbon.servers; if (!uwsgi.sockets) return; if (!u_carbon.servers) return; @@ -63,7 +64,11 @@ void carbon_post_init() { if (u_carbon.freq < 1) u_carbon.freq = 60; if (u_carbon.timeout < 1) u_carbon.timeout = 3; - if (!u_carbon.id) u_carbon.id = uwsgi.sockets->name; + if (!u_carbon.id) u_carbon.id = uwsgi_str(uwsgi.sockets->name); + + for(i=0;i<(int)strlen(u_carbon.id);i++) { + if (u_carbon.id[i] == '.') u_carbon.id[i] = '_'; + } }