Rename sessions_count to sessions_get_count
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 6 Sep 2015 10:44:45 +0000 (12:44 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 6 Sep 2015 10:44:45 +0000 (12:44 +0200)
src/http_command.c
src/session.c
src/session.h

index f0768fb..de4ae13 100644 (file)
@@ -1481,7 +1481,7 @@ static void cmd_info(struct http_channel *c)
         }
     }
 #endif
-    wrbuf_printf(c->wrbuf, " <sessions>%d</sessions>\n", sessions_count());
+    wrbuf_printf(c->wrbuf, " <sessions>%d</sessions>\n", sessions_get_count());
     wrbuf_printf(c->wrbuf, " <clients>%d</clients>\n",   clients_count());
     print_meminfo(c->wrbuf);
     info_services(c->server, c->wrbuf);
index 048d10e..49425d5 100644 (file)
@@ -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);
 }
index 84e94d2..a88cf8a 100644 (file)
@@ -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);