From 8dc841ea11097825da5b27f5b2fb0e6d2181cd23 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Wed, 16 Aug 2017 15:14:48 +0000 Subject: [PATCH] Fix remaining lint from ms capability for hchecks. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805206 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_balancer.c | 6 +++--- modules/proxy/mod_proxy_hcheck.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index b8cf195594..bdefc8f54e 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -1096,7 +1096,7 @@ static int balancer_handler(request_rec *r) int ival; double fval = atof(val); ival = fval * 100.0; - if (ival >= 1 && ival <= 100) { + if (ival >= 100 && ival <= 10000) { wsel->s->lbfactor = ival; if (bsel) recalc_factors(bsel); @@ -1617,7 +1617,7 @@ static int balancer_handler(request_rec *r) ap_rputs(apr_strfsize(worker->s->read, fbuf), r); if (set_worker_hc_param_f) { ap_rprintf(r, "%s", ap_proxy_show_hcmethod(worker->s->method)); - ap_rprintf(r, "%dms", (int)apr_time_msec(worker->s->interval)); + ap_rprintf(r, "%" APR_TIME_T_FMT "ms", apr_time_as_msec(worker->s->interval)); ap_rprintf(r, "%d (%d)", worker->s->passes,worker->s->pcount); ap_rprintf(r, "%d (%d)", worker->s->fails, worker->s->fcount); ap_rprintf(r, "%s", worker->s->hcuri); @@ -1687,7 +1687,7 @@ static int balancer_handler(request_rec *r) hc_select_exprs_f(r, wsel->s->hcexpr); ap_rputs("\n\n", r); ap_rprintf(r, "Interval (ms)\n", (int)apr_time_msec(wsel->s->interval)); + "value='%" APR_TIME_T_FMT "'>\n", apr_time_as_msec(wsel->s->interval)); ap_rprintf(r, "Passes trigger\n", wsel->s->passes); ap_rprintf(r, "Fails trigger)