Stats: auto-reload statistics with proxy plugin
This commit is contained in:
parent
41a3fd0fd0
commit
ff1c1107f3
2
NEWS
2
NEWS
|
@ -1,6 +1,8 @@
|
|||
ver 0.18.5 (20??/??/??)
|
||||
* configuration
|
||||
- fix crash when db_file is configured without music_directory
|
||||
* database
|
||||
- proxy: auto-reload statistics
|
||||
* decoder
|
||||
- fluidsynth: auto-detect by default
|
||||
* fix ia64, mipsel and other little-endian architectures
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue