From 56f79efc74202856f4fba3bd7dbeeebeab506ecb Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 15 Oct 2013 11:13:14 +0200 Subject: [PATCH] fixed json format for metrics --- core/master_utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/master_utils.c b/core/master_utils.c index 85bb1fab..a714defc 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -886,7 +886,14 @@ struct uwsgi_stats *uwsgi_master_generate_stats() { uwsgi_rwunlock(uwsgi.metrics_lock); goto end; } + um = um->next; + if (um) { + if (uwsgi_stats_comma(us)) { + uwsgi_rwunlock(uwsgi.metrics_lock); + goto end; + } + } } uwsgi_rwunlock(uwsgi.metrics_lock);