[db] Store start time in admin table

This commit is contained in:
chme 2017-11-19 08:04:51 +01:00 committed by ejurgensen
parent 38ab4b9676
commit f49a3c888a
2 changed files with 2 additions and 0 deletions

View File

@ -6352,6 +6352,7 @@ db_init(void)
files = db_files_get_count();
pls = db_pl_get_count();
db_admin_setint64(ADMIN_START_TIME, (int64_t) time(NULL));
db_perthread_deinit();

View File

@ -68,6 +68,7 @@ enum query_type {
#define ADMIN_SCHEMA_VERSION "schema_version"
#define ADMIN_QUEUE_VERSION "queue_version"
#define ADMIN_DB_UPDATE "db_update"
#define ADMIN_START_TIME "start_time"
#define ADMIN_LASTFM_SESSION_KEY "lastfm_sk"
#define ADMIN_SPOTIFY_REFRESH_TOKEN "spotify_refresh_token"