mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 02:52:46 +02:00
[CLEANUP] Move counters to dedicated structures
Move counters from "struct proxy" and "struct server" to "struct pxcounters" and "struct svcounters". This patch should make no functional change.
This commit is contained in:
committed by
Willy Tarreau
parent
8d06b8b8db
commit
052d4fd07d
@@ -38,7 +38,7 @@ int srv_getinter(struct server *s);
|
||||
/* increase the number of cumulated connections on the designated server */
|
||||
static void inline srv_inc_sess_ctr(struct server *s)
|
||||
{
|
||||
s->cum_sess++;
|
||||
s->counters.cum_sess++;
|
||||
update_freq_ctr(&s->sess_per_sec, 1);
|
||||
if (s->sess_per_sec.curr_ctr > s->sps_max)
|
||||
s->sps_max = s->sess_per_sec.curr_ctr;
|
||||
|
||||
Reference in New Issue
Block a user