]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: contrib/prometheus-exporter: align for with srv status case
authorWilliam Dauchy <wdauchy@gmail.com>
Sun, 14 Feb 2021 21:26:24 +0000 (22:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Feb 2021 10:56:31 +0000 (11:56 +0100)
the for loop was wrongly indented following our recent rework

Signed-off-by: William Dauchy <wdauchy@gmail.com>
contrib/prometheus-exporter/service-prometheus.c

index 403f5a619b73a99ae5894193863fb5228ca88e8c..1b08fcfb4abd7fd6856dbdc7d323a09e7c4c8a84 100644 (file)
@@ -861,7 +861,7 @@ static int promex_dump_srv_metrics(struct appctx *appctx, struct htx *htx)
                                switch (appctx->st2) {
                                        case ST_F_STATUS:
                                                state = promex_srv_status(sv);
-                                       for (; appctx->ctx.stats.st_code < PROMEX_SRV_STATE_COUNT; appctx->ctx.stats.st_code++) {
+                                               for (; appctx->ctx.stats.st_code < PROMEX_SRV_STATE_COUNT; appctx->ctx.stats.st_code++) {
                                                        val = mkf_u32(FO_STATUS, state == appctx->ctx.stats.st_code);
                                                        labels[2].name = ist("state");
                                                        labels[2].value = promex_srv_st[appctx->ctx.stats.st_code];