DatabasePlugin: add method GetUpdateStamp()
Refactor SimpleDatabase::GetLastModified() to be generic for all plugins. Remove the SimpleDatabase assumption from db_stats_print(), allowing it to be implemented by all database plugins.
This commit is contained in:
@@ -83,10 +83,11 @@ db_stats_print(Client &client)
|
||||
stats.song_count,
|
||||
stats.total_duration);
|
||||
|
||||
if (db_is_simple())
|
||||
const time_t update_stamp = GetDatabase()->GetUpdateStamp();
|
||||
if (update_stamp > 0)
|
||||
client_printf(client,
|
||||
"db_update: %lu\n",
|
||||
(unsigned long)db_get_mtime());
|
||||
(unsigned long)update_stamp);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user