Stats: lazy initialization

Ask the DatabasePlugin for stats when the first client requests them,
not at startup.
This commit is contained in:
Max Kellermann
2014-01-10 23:40:05 +01:00
parent e9ba5fcaf3
commit 348d0c944e
4 changed files with 37 additions and 11 deletions

View File

@@ -24,7 +24,8 @@ class Client;
void stats_global_init(void);
void stats_update(void);
void
stats_invalidate();
void
stats_print(Client &client);