aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Stats.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Stats.cxx b/src/Stats.cxx
index 2baeafa39..8f9d90b0f 100644
--- a/src/Stats.cxx
+++ b/src/Stats.cxx
@@ -62,6 +62,13 @@ void stats_update(void)
void
stats_print(Client &client)
{
+ if (!db_is_simple())
+ /* reload statistics if we're using the "proxy"
+ database plugin */
+ /* TODO: move this into the "proxy" database plugin as
+ an "idle" handler */
+ stats_update();
+
client_printf(client,
"artists: %u\n"
"albums: %u\n"