]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: use stricter naming stats/field/line
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Apr 2024 08:26:23 +0000 (10:26 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Apr 2024 14:25:18 +0000 (16:25 +0200)
commite97375dcab4c4f2eab4c3d0583f78736203632e8
tree754d98b571e30587e7efcd0a4de50f0ecdd3a047
parent8dbb74542f534388c153e176f36c88f9f89cf4c5
MINOR: stats: use stricter naming stats/field/line

Several unique names were used for different purposes under statistics
implementation. This caused the code to be difficult to understand.

* stat/stats name is removed when a more specific name could be used
* restrict field usage to purely refer to <struct field> which
  represents a raw stat value.
* use "line" naming to represent an array of <struct field>
addons/promex/service-prometheus.c
include/haproxy/stats-t.h
include/haproxy/stats.h
src/hlua_fcn.c
src/stats-json.c
src/stats.c