Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ff1c1107
Commit
ff1c1107
authored
Nov 21, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stats: auto-reload statistics with proxy plugin
parent
41a3fd0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS
NEWS
+2
-0
Stats.cxx
src/Stats.cxx
+7
-0
No files found.
NEWS
View file @
ff1c1107
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
...
...
src/Stats.cxx
View file @
ff1c1107
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment