diff --git a/app/server/lib/DocStorage.ts b/app/server/lib/DocStorage.ts index 8bbddb0b..6e569099 100644 --- a/app/server/lib/DocStorage.ts +++ b/app/server/lib/DocStorage.ts @@ -1556,7 +1556,7 @@ export class DocStorage implements ISQLiteDB, OnDemandStorage { this._lastLoggedDataSize = now; const result = await this.get(` - SELECT SUM(pgsize) AS totalSize + SELECT SUM(pgsize - unused) AS totalSize FROM dbstat WHERE NOT ( name LIKE 'sqlite_%' OR