]> granicus.if.org Git - php/commitdiff
- Fixed bug #55486 (status show BIG processes number)
authorJérôme Loyet <fat@php.net>
Sat, 8 Oct 2011 19:50:26 +0000 (19:50 +0000)
committerJérôme Loyet <fat@php.net>
Sat, 8 Oct 2011 19:50:26 +0000 (19:50 +0000)
sapi/fpm/fpm/fpm_process_ctl.c

index 5e7ca5d9003f3c2e0c85320354a836da3af18130..027b566bb221f19db342443217e406844c4b1728 100644 (file)
@@ -317,7 +317,7 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{
                int idle = 0;
                int active = 0;
                int children_to_fork;
-               unsigned cur_lq;
+               unsigned cur_lq = 0;
 
                if (wp->config == NULL) continue;
 
@@ -352,8 +352,8 @@ static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{
                                }
 #endif
                        }
-                       fpm_scoreboard_update(idle, active, cur_lq, -1, -1, -1, FPM_SCOREBOARD_ACTION_SET, wp->scoreboard);
                }
+               fpm_scoreboard_update(idle, active, cur_lq, -1, -1, -1, FPM_SCOREBOARD_ACTION_SET, wp->scoreboard);
 
 
                /* the rest is only used by PM_STYLE_DYNAMIC */