View | Details | Raw Unified | Return to bug 52132
Collapse All | Expand All

(-)modules/fcgid/fcgid_spawn_ctl.c (-4 / +7 lines)
Lines 107-116 Link Here
107
        current_node->process_counter--;
107
        current_node->process_counter--;
108
    }
108
    }
109
109
110
    /* Decrease the score based on elapsed time */
110
    /* Skip score adjustment if clock went backwards */
111
    current_node->score -=
111
    if( apr_time_sec(now) > apr_time_sec(current_node->last_stat_time) ) {
112
        sconf->time_score *
112
        /* Decrease the score based on elapsed time */
113
        (int)(apr_time_sec(now) - apr_time_sec(current_node->last_stat_time));
113
        current_node->score -=
114
            sconf->time_score *
115
            (int)(apr_time_sec(now) - apr_time_sec(current_node->last_stat_time));
116
    }
114
117
115
    /* Make score reasonable */
118
    /* Make score reasonable */
116
    if (current_node->score < 0)
119
    if (current_node->score < 0)

Return to bug 52132