fixed json format for metrics

This commit is contained in:
Unbit
2013-10-15 11:13:14 +02:00
parent ea073a9bbd
commit 56f79efc74
+7
View File
@@ -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);