]> granicus.if.org Git - apache/commitdiff
mod_proxy_balancer: follow up to r1828890: indentation and 80 col.
authorYann Ylavic <ylavic@apache.org>
Tue, 29 May 2018 21:43:01 +0000 (21:43 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 29 May 2018 21:43:01 +0000 (21:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832500 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/balancers/mod_lbmethod_bybusyness.c
modules/proxy/balancers/mod_lbmethod_byrequests.c
modules/proxy/balancers/mod_lbmethod_bytraffic.c

index 4dada8cdddc956373fe2aaa1f8707a33bab1f000..709512bb5ee76906de0fcad7c50f68f4ce1ef9e4 100644 (file)
@@ -40,17 +40,19 @@ static int is_best_bybusyness(proxy_worker *current, proxy_worker *prev_best, vo
 }
 
 static proxy_worker *find_best_bybusyness(proxy_balancer *balancer,
-                                request_rec *r)
+                                          request_rec *r)
 {
     int total_factor = 0;
-    proxy_worker *worker = ap_proxy_balancer_get_best_worker(balancer, r, is_best_bybusyness, &total_factor);
+    proxy_worker *worker =
+        ap_proxy_balancer_get_best_worker(balancer, r, is_best_bybusyness,
+                                          &total_factor);
 
     if (worker) {
         worker->s->lbstatus -= total_factor;
-        }
+    }
 
     return worker;
-                }
+}
 
 /* assumed to be mutex protected by caller */
 static apr_status_t reset(proxy_balancer *balancer, server_rec *s)
index 69eb3e00f71f822f747db0b4753a42880c721ddc..0483a70fecb712de392783f91e46e3ee3cd129d9 100644 (file)
@@ -85,10 +85,10 @@ static proxy_worker *find_best_byrequests(proxy_balancer *balancer,
 
     if (worker) {
         worker->s->lbstatus -= total_factor;
-        }
+    }
 
     return worker;
-                }
+}
 
 /* assumed to be mutex protected by caller */
 static apr_status_t reset(proxy_balancer *balancer, server_rec *s)
index 7c42f925b5beb234d1eef4250404bdfb902b6d74..343c59ac32a510dab1e5bd9ccc905182007fd110 100644 (file)
@@ -59,8 +59,9 @@ static proxy_worker *find_best_bytraffic(proxy_balancer *balancer,
 {
     apr_off_t min_traffic = 0;
 
-    return ap_proxy_balancer_get_best_worker(balancer, r, is_best_bytraffic, &min_traffic);
-        }
+    return ap_proxy_balancer_get_best_worker(balancer, r, is_best_bytraffic,
+                                             &min_traffic);
+}
 
 /* assumed to be mutex protected by caller */
 static apr_status_t reset(proxy_balancer *balancer, server_rec *s)