Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1CFF62004A0 for ; Wed, 16 Aug 2017 17:14:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1AFDC162A78; Wed, 16 Aug 2017 15:14:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 61B60161BEA for ; Wed, 16 Aug 2017 17:14:55 +0200 (CEST) Received: (qmail 63503 invoked by uid 500); 16 Aug 2017 15:14:54 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 63494 invoked by uid 99); 16 Aug 2017 15:14:54 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2017 15:14:54 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 95A8E3A0316 for ; Wed, 16 Aug 2017 15:14:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1805206 - in /httpd/httpd/trunk/modules/proxy: mod_proxy_balancer.c mod_proxy_hcheck.c Date: Wed, 16 Aug 2017 15:14:48 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170816151452.95A8E3A0316@svn01-us-west.apache.org> archived-at: Wed, 16 Aug 2017 15:14:56 -0000 Author: jim Date: Wed Aug 16 15:14:48 2017 New Revision: 1805206 URL: http://svn.apache.org/viewvc?rev=1805206&view=rev Log: Fix remaining lint from ms capability for hchecks. Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=1805206&r1=1805205&r2=1805206&view=diff ============================================================================== --- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original) +++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Wed Aug 16 15:14:48 2017 @@ -1096,7 +1096,7 @@ static int balancer_handler(request_rec 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 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 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)