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

(-)mod_jk-head/native/common/jk_lb_worker.c (-5 / +5 lines)
Lines 597-612 Link Here
597
    jk_uint64_t curmax = 0;
597
    jk_uint64_t curmax = 0;
598
598
599
    JK_TRACE_ENTER(l);
599
    JK_TRACE_ENTER(l);
600
    if (p->lbmethod != JK_LB_METHOD_BUSYNESS) {
600
    for (i = 0; i < p->num_of_workers; i++) {
601
        for (i = 0; i < p->num_of_workers; i++) {
601
        lb_sub_worker_t *w = &p->lb_workers[i];
602
            lb_sub_worker_t *w = &p->lb_workers[i];
602
        ajp_worker_t *aw = (ajp_worker_t *)w->worker->worker_private;
603
            ajp_worker_t *aw = (ajp_worker_t *)w->worker->worker_private;
603
        if (p->lbmethod != JK_LB_METHOD_BUSYNESS) {
604
            w->s->lb_value >>= exponent;
604
            w->s->lb_value >>= exponent;
605
            if (w->s->lb_value > curmax) {
605
            if (w->s->lb_value > curmax) {
606
                curmax = w->s->lb_value;
606
                curmax = w->s->lb_value;
607
            }
607
            }
608
            aw->s->reply_timeouts >>= exponent;
609
        }
608
        }
609
        aw->s->reply_timeouts >>= exponent;
610
    }
610
    }
611
    JK_TRACE_EXIT(l);
611
    JK_TRACE_EXIT(l);
612
    return curmax;
612
    return curmax;

Return to bug 46109