aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/update.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index 80fa3add3..5455f1da8 100644
--- a/src/update.c
+++ b/src/update.c
@@ -31,6 +31,8 @@
#include "update.h"
#include "idle.h"
#include "conf.h"
+#include "stats.h"
+#include "dbUtils.h"
#include "main.h"
#include <glib.h>
@@ -738,6 +740,9 @@ static void update_finished_event(void)
spawn_update_task(path);
} else {
progress = UPDATE_PROGRESS_IDLE;
+
+ stats.numberOfSongs = countSongsIn(NULL);
+ stats.dbPlayTime = sumSongTimesIn(NULL);
}
}