Enable the statistics timer again, so that !stats provide up to date network statistics.

This commit is contained in:
Jan Vidar Krey
2010-01-23 00:43:38 +01:00
parent c670d13369
commit 304ecda16a
4 changed files with 24 additions and 10 deletions

View File

@@ -117,15 +117,15 @@ int net_backend_process()
}
int res = select(maxfd+1, &g_backend->rfds, &g_backend->wfds, 0, &tval);
g_backend->now = time(0);
timeout_queue_process(&g_backend->timeout_queue, g_backend->now);
if (res == -1)
{
LOG_WARN("select returned -1");
return 0;
}
g_backend->now = time(0);
timeout_queue_process(&g_backend->timeout_queue, g_backend->now);
for (n = 0, found = 0; found < res && n < (maxfd+1); n++)
{
struct net_connection_select* con = g_backend->conns[n];