aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/database.c b/src/database.c
index 42dd02219..b465a3472 100644
--- a/src/database.c
+++ b/src/database.c
@@ -25,9 +25,7 @@
#include "ls.h"
#include "path.h"
#include "stats.h"
-#include "dbUtils.h"
#include "update.h"
-#include "event_pipe.h"
#include "config.h"
#include <glib.h>
@@ -318,8 +316,7 @@ db_load(void)
directory_load(fp, music_root);
while (fclose(fp) && errno == EINTR) ;
- stats.numberOfSongs = countSongsIn(NULL);
- stats.dbPlayTime = sumSongTimesIn(NULL);
+ stats_update();
if (stat(dbFile, &st) == 0)
directory_dbModTime = st.st_mtime;