fixed cheaper busyness check

This commit is contained in:
Unbit
2013-12-26 08:02:27 +01:00
parent 4fc99b3a3e
commit f2e4eabf42
+1 -1
View File
@@ -358,7 +358,7 @@ void uwsgi_cheaper_register_busyness(void) {
}
static int uwsgi_cheaper_busyness_init(void) {
if (uwsgi.requested_cheaper_algo && strcmp(uwsgi.requested_cheaper_algo, "busyness")) return 0;
if (!uwsgi.requested_cheaper_algo || strcmp(uwsgi.requested_cheaper_algo, "busyness")) return 0;
// this happens on the first run, the required memory is allocated
uwsgi_cheaper_busyness_global.last_values = uwsgi_calloc(sizeof(uint64_t) * uwsgi.numproc);
uwsgi_cheaper_busyness_global.was_busy = uwsgi_calloc(sizeof(int) * uwsgi.numproc);