fixed pause reporting

This commit is contained in:
roberto@sirius
2012-02-28 18:56:32 +01:00
parent b2eaf384ac
commit 3a108b61ee
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2466,7 +2466,7 @@ PyObject *py_uwsgi_workers(PyObject * self, PyObject * args) {
if (uwsgi.workers[i + 1].cheaped) {
zero = PyString_FromString("cheap");
}
else if (uwsgi.workers[i + 1].suspended) {
else if (uwsgi.workers[i + 1].suspended && !uwsgi.workers[i + 1].busy) {
zero = PyString_FromString("pause");
}
else {