From: William Dauchy Date: Sun, 14 Feb 2021 21:26:24 +0000 (+0100) Subject: CLEANUP: contrib/prometheus-exporter: align for with srv status case X-Git-Tag: v2.4-dev9~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64a3805309dd7b4e39dc7d11da56ec873137e23f;p=thirdparty%2Fhaproxy.git CLEANUP: contrib/prometheus-exporter: align for with srv status case the for loop was wrongly indented following our recent rework Signed-off-by: William Dauchy --- diff --git a/contrib/prometheus-exporter/service-prometheus.c b/contrib/prometheus-exporter/service-prometheus.c index 403f5a619b..1b08fcfb4a 100644 --- a/contrib/prometheus-exporter/service-prometheus.c +++ b/contrib/prometheus-exporter/service-prometheus.c @@ -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];