mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(server): integrate DB size into startup info
This commit is contained in:
		| @@ -197,15 +197,13 @@ function optimize() { | ||||
|     log.info(`Optimization finished in ${Date.now() - start}ms.`); | ||||
| } | ||||
|  | ||||
| function getDbSize() { | ||||
| export function getDbSize() { | ||||
|     return sql.getValue<number>("SELECT page_count * page_size / 1000 as size FROM pragma_page_count(), pragma_page_size()"); | ||||
| } | ||||
|  | ||||
| function initializeDb() { | ||||
|     cls.init(initDbConnection); | ||||
|  | ||||
|     log.info(`DB size: ${getDbSize()} KB`); | ||||
|  | ||||
|     dbReady.then(() => { | ||||
|         if (config.General && config.General.noBackup === true) { | ||||
|             log.info("Disabling scheduled backups."); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user