Reporting wrong variable.
@@ -445,14 +445,12 @@ static PyObject *wsgi_request_metrics(void)
cpu_system_time = cpu_system_time / total_cpu_time;
}
- object = PyFloat_FromDouble(
- (stop_cpu_user_time-start_cpu_user_time)/time_interval);
+ object = PyFloat_FromDouble(cpu_user_time);
PyDict_SetItem(result,
WSGI_INTERNED_STRING(cpu_user_time), object);
Py_DECREF(object);
- object = PyFloat_FromDouble(
- (stop_cpu_system_time-start_cpu_system_time)/time_interval);
+ object = PyFloat_FromDouble(cpu_system_time);
PyDict_SetItem(result,
WSGI_INTERNED_STRING(cpu_system_time), object);
Py_DECREF(object);
