aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 20:57:06 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 20:57:06 +0100
commit6acba7350938c099afab7bec04c8dc9adf674424 (patch)
treeac24517eff8723561eacea3921d971bfd4e257c2 /src/update.c
parent5c477f6067660a448a49622f466c23eab862e372 (diff)
downloadmpd-6acba7350938c099afab7bec04c8dc9adf674424.tar.gz
mpd-6acba7350938c099afab7bec04c8dc9adf674424.tar.xz
mpd-6acba7350938c099afab7bec04c8dc9adf674424.zip
stats: added stats_update()
Diffstat (limited to '')
-rw-r--r--src/update.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/update.c b/src/update.c
index 8061acafe..6aecd3265 100644
--- a/src/update.c
+++ b/src/update.c
@@ -32,7 +32,6 @@
#include "idle.h"
#include "conf.h"
#include "stats.h"
-#include "dbUtils.h"
#include "main.h"
#include <glib.h>
@@ -739,8 +738,7 @@ static void update_finished_event(void)
} else {
progress = UPDATE_PROGRESS_IDLE;
- stats.numberOfSongs = countSongsIn(NULL);
- stats.dbPlayTime = sumSongTimesIn(NULL);
+ stats_update();
}
}