Commit ff1c1107 authored by Max Kellermann's avatar Max Kellermann

Stats: auto-reload statistics with proxy plugin

parent 41a3fd0f
ver 0.18.5 (20??/??/??) ver 0.18.5 (20??/??/??)
* configuration * configuration
- fix crash when db_file is configured without music_directory - fix crash when db_file is configured without music_directory
* database
- proxy: auto-reload statistics
* decoder * decoder
- fluidsynth: auto-detect by default - fluidsynth: auto-detect by default
* fix ia64, mipsel and other little-endian architectures * fix ia64, mipsel and other little-endian architectures
......
...@@ -62,6 +62,13 @@ void stats_update(void) ...@@ -62,6 +62,13 @@ void stats_update(void)
void void
stats_print(Client &client) 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, client_printf(client,
"artists: %u\n" "artists: %u\n"
"albums: %u\n" "albums: %u\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment