From: Adam Dickmeiss Date: Sun, 6 Sep 2015 10:44:45 +0000 (+0200) Subject: Rename sessions_count to sessions_get_count X-Git-Tag: v1.12.4~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1bb568a75bc0d9f55b0d36cbc8891db5574acf19;p=pazpar2-moved-to-github.git Rename sessions_count to sessions_get_count --- 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);