From 0de08c553cd1f6e3ff56dfa2e19ad34aa18cdc14 Mon Sep 17 00:00:00 2001 From: "roberto@netbsd64" Date: Wed, 5 Oct 2011 21:16:28 +0200 Subject: [PATCH] fixed a potential overflow --- master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master.c b/master.c index 21617c76..94bd0bb2 100644 --- a/master.c +++ b/master.c @@ -634,7 +634,7 @@ healthy: // find the oldest worker and cheap it if (active_workers > uwsgi.cheaper_count+1 || (idle_count > 60 && active_workers > uwsgi.cheaper_count)) { - time_t oldest_worker_spawn = LONG_MAX; + time_t oldest_worker_spawn = INT_MAX; int oldest_worker = 0; idle_count = 0; for(i=1;i<=uwsgi.numproc;i++) {