summaryrefslogtreecommitdiff
path: root/src/gw_backend.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-05-10 09:52:13 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-05-11 23:51:48 -0400
commit2a7d3a27513bd05cc9352fa6492eca8a1d6c52b8 (patch)
tree26295609a8bec01e3cae4723bd8e3302c3da27dd /src/gw_backend.c
parent6669846947f9a5c1177ea142a4d333309971188d (diff)
downloadlighttpd-git-2a7d3a27513bd05cc9352fa6492eca8a1d6c52b8.tar.gz
[multiple] rename status_counter -> plugin_stats
Diffstat (limited to 'src/gw_backend.c')
-rw-r--r--src/gw_backend.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gw_backend.c b/src/gw_backend.c
index b125e050..df9d8217 100644
--- a/src/gw_backend.c
+++ b/src/gw_backend.c
@@ -40,8 +40,6 @@
-#include "status_counter.h"
-
__attribute_noinline__
static int * gw_status_get_counter(gw_host *host, gw_proc *proc, const char *tag, size_t tlen) {
/*(At the cost of some memory, could prepare strings for host and for proc
@@ -70,7 +68,7 @@ static int * gw_status_get_counter(gw_host *host, gw_proc *proc, const char *tag
llen += tlen;
label[llen] = '\0';
- return status_counter_get_counter(label, llen);
+ return plugin_stats_get_ptr(label, llen);
}
static void gw_proc_tag_inc(gw_host *host, gw_proc *proc, const char *tag, size_t len) {
@@ -117,7 +115,7 @@ static void gw_status_init_host(gw_host *host) {
gw_status_get_counter(host, NULL, CONST_STR_LEN(".load"));
*host->stats_load = 0;
host->stats_global_active =
- status_counter_get_counter(CONST_STR_LEN("gw.active-requests"));
+ plugin_stats_get_ptr("gw.active-requests",sizeof("gw.active-requests")-1);
}