added delta_requests

This commit is contained in:
roberto@goyle
2011-11-25 15:34:41 +01:00
parent 869ae5e3ed
commit 5b5e3a1ec1
6 changed files with 72 additions and 13 deletions
+6
View File
@@ -2490,6 +2490,12 @@ PyObject *py_uwsgi_workers(PyObject * self, PyObject * args) {
}
Py_DECREF(zero);
zero = PyLong_FromUnsignedLongLong(uwsgi.workers[i + 1].delta_requests);
if (PyDict_SetItemString(worker_dict, "delta_requests", zero)) {
goto clear;
}
Py_DECREF(zero);
zero = PyLong_FromUnsignedLongLong(uwsgi.workers[i + 1].signals);
if (PyDict_SetItemString(worker_dict, "signals", zero)) {
goto clear;