From 1bb568a75bc0d9f55b0d36cbc8891db5574acf19 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 6 Sep 2015 12:44:45 +0200 Subject: [PATCH] Rename sessions_count to sessions_get_count --- src/http_command.c | 2 +- src/session.c | 2 +- src/session.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/http_command.c b/src/http_command.c index f0768fb..de4ae13 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1481,7 +1481,7 @@ static void cmd_info(struct http_channel *c) } } #endif - wrbuf_printf(c->wrbuf, " %d\n", sessions_count()); + wrbuf_printf(c->wrbuf, " %d\n", sessions_get_count()); wrbuf_printf(c->wrbuf, " %d\n", clients_count()); print_meminfo(c->wrbuf); info_services(c->server, c->wrbuf); diff --git a/src/session.c b/src/session.c index 048d10e..49425d5 100644 --- a/src/session.c +++ b/src/session.c @@ -113,7 +113,7 @@ static int session_use(int delta) return sessions; } -int sessions_count(void) +int sessions_get_count(void) { return session_use(0); } diff --git a/src/session.h b/src/session.h index 84e94d2..a88cf8a 100644 --- a/src/session.h +++ b/src/session.h @@ -150,11 +150,12 @@ struct hitsbytarget { struct hitsbytarget *get_hitsbytarget(struct session *s, int *count, NMEM nmem); struct session *session_create(NMEM nmem, struct conf_service *service, unsigned session_id); -int sessions_count(void); void session_destroy(struct session *s); void session_init_databases(struct session *s); void statistics(struct session *s, struct statistics *stat); +int sessions_get_count(void); + void session_sort(struct session *se, struct reclist_sortparms *sp, const char *mergekey, const char *rank); -- 1.7.10.4