X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=http_command.c;h=23bd55e8c0a6c1a1a9149caac49e336db41ab4e3;hb=34f12b67bca933b86f482edd7491953f65d11404;hp=335f3dd50bffeddc22063b5385f8ed3f08d4548f;hpb=117cefc8fc4658f95dbf2b7464acbbb871e1769b;p=pazpar2-moved-to-github.git diff --git a/http_command.c b/http_command.c index 335f3dd..23bd55e 100644 --- a/http_command.c +++ b/http_command.c @@ -1,7 +1,7 @@ /* * stat->num_hits = s->total_hits; * stat->num_records = s->total_records; - * $Id: http_command.c,v 1.4 2006-11-27 19:44:26 quinn Exp $ + * $Id: http_command.c,v 1.5 2006-12-03 06:43:24 quinn Exp $ */ #include @@ -267,6 +267,7 @@ static void cmd_stat(struct http_request *rq, struct http_response *rs) wrbuf_puts(c->wrbuf, ""); wrbuf_printf(c->wrbuf, "%d\n", stat.num_hits); wrbuf_printf(c->wrbuf, "%d\n", stat.num_records); + wrbuf_printf(c->wrbuf, "%d\n", stat.num_clients); wrbuf_printf(c->wrbuf, "%d\n", stat.num_no_connection); wrbuf_printf(c->wrbuf, "%d\n", stat.num_connecting); wrbuf_printf(c->wrbuf, "%d\n", stat.num_initializing); @@ -279,6 +280,7 @@ static void cmd_stat(struct http_request *rq, struct http_response *rs) rs->payload = nmem_strdup(c->nmem, wrbuf_buf(c->wrbuf)); } +#ifdef GAGA static void cmd_load(struct http_request *rq, struct http_response *rs) { struct http_session *s = locate_session(rq, rs); @@ -296,6 +298,7 @@ static void cmd_load(struct http_request *rq, struct http_response *rs) else rs->payload = "OK"; } +#endif struct { char *name; @@ -303,7 +306,9 @@ struct { } commands[] = { { "init", cmd_init }, { "stat", cmd_stat }, +#ifdef GAGA { "load", cmd_load }, +#endif { "bytarget", cmd_bytarget }, { "show", cmd_show }, { "search", cmd_search },