From 348d0c944e92e8dfb361190b97a168f27a7333b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Jan 2014 23:40:05 +0100 Subject: Stats: lazy initialization Ask the DatabasePlugin for stats when the first client requests them, not at startup. --- src/Stats.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Stats.hxx') diff --git a/src/Stats.hxx b/src/Stats.hxx index 63b96c4d6..e11be0d68 100644 --- a/src/Stats.hxx +++ b/src/Stats.hxx @@ -24,7 +24,8 @@ class Client; void stats_global_init(void); -void stats_update(void); +void +stats_invalidate(); void stats_print(Client &client); -- cgit v1.2.3