mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-26 15:40:32 +00:00
BUILD: contrib/prometheus: fix build breakage caused by move of idle_pct
The idle_pct thread-local variable was moved to struct thread_info by
commit 81036f2
("MINOR: time: move the cpu, mono, and idle time to
thread_info") but not updated in service-prometheus.c, thus breaking
it.
No backport is needed. This fixes GH issue #110.
This commit is contained in:
parent
2a54bb74cd
commit
76824a8c99
@ -1369,7 +1369,7 @@ static int promex_dump_global_metrics(struct appctx *appctx, struct htx *htx)
|
|||||||
metric = mkf_u32(0, tasks_run_queue_cur);
|
metric = mkf_u32(0, tasks_run_queue_cur);
|
||||||
break;
|
break;
|
||||||
case INF_IDLE_PCT:
|
case INF_IDLE_PCT:
|
||||||
metric = mkf_u32(FN_AVG, idle_pct);
|
metric = mkf_u32(FN_AVG, ti->idle_pct);
|
||||||
break;
|
break;
|
||||||
case INF_STOPPING:
|
case INF_STOPPING:
|
||||||
metric = mkf_u32(0, stopping);
|
metric = mkf_u32(0, stopping);
|
||||||
|
Loading…
Reference in New Issue
Block a user