- response_open_no_status(c, "stat");
- wrbuf_printf(c->wrbuf, "<activeclients>%d</activeclients>\n", clients);
- wrbuf_printf(c->wrbuf, "<hits>" ODR_INT_PRINTF "</hits>\n", stat.num_hits);
- wrbuf_printf(c->wrbuf, "<records>%d</records>\n", stat.num_records);
- wrbuf_printf(c->wrbuf, "<clients>%d</clients>\n", stat.num_clients);
- wrbuf_printf(c->wrbuf, "<unconnected>%d</unconnected>\n", stat.num_no_connection);
- wrbuf_printf(c->wrbuf, "<connecting>%d</connecting>\n", stat.num_connecting);
- wrbuf_printf(c->wrbuf, "<working>%d</working>\n", stat.num_working);
- wrbuf_printf(c->wrbuf, "<idle>%d</idle>\n", stat.num_idle);
- wrbuf_printf(c->wrbuf, "<failed>%d</failed>\n", stat.num_failed);
- wrbuf_printf(c->wrbuf, "<error>%d</error>\n", stat.num_error);
- wrbuf_printf(c->wrbuf, "<progress>%.2f</progress>\n", progress);
+ response_open_command(c, "stat");
+ wrbuf_printf(c->wrbuf, "\n <activeclients>%d</activeclients>\n", clients);
+ wrbuf_printf(c->wrbuf, " <hits>" ODR_INT_PRINTF "</hits>\n", stat.num_hits);
+ wrbuf_printf(c->wrbuf, " <records>%d</records>\n", stat.num_records);
+ wrbuf_printf(c->wrbuf, " <clients>%d</clients>\n", stat.num_clients);
+ wrbuf_printf(c->wrbuf, " <unconnected>%d</unconnected>\n", stat.num_no_connection);
+ wrbuf_printf(c->wrbuf, " <connecting>%d</connecting>\n", stat.num_connecting);
+ wrbuf_printf(c->wrbuf, " <working>%d</working>\n", stat.num_working);
+ wrbuf_printf(c->wrbuf, " <idle>%d</idle>\n", stat.num_idle);
+ wrbuf_printf(c->wrbuf, " <failed>%d</failed>\n", stat.num_failed);
+ wrbuf_printf(c->wrbuf, " <error>%d</error>\n", stat.num_error);
+ wrbuf_printf(c->wrbuf, " <progress>%.2f</progress>\n", progress);