Debug info: syncing folders

This commit is contained in:
M66B 2023-07-06 11:11:40 +02:00
parent da5c23b6ba
commit dc1f3c5725
2 changed files with 9 additions and 2 deletions

View File

@ -243,9 +243,16 @@ public interface DaoFolder {
@Query("SELECT download FROM folder WHERE id = :id")
boolean getFolderDownload(long id);
@Query("SELECT COUNT(*) FROM folder")
@Query("SELECT COUNT(*) FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize")
int countTotal();
@Query("SELECT COUNT(*) FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize AND folder.synchronize")
int countSync();
@Insert
long insertFolder(EntityFolder folder);

View File

@ -2409,7 +2409,7 @@ public class Log {
Helper.getInterruptionFilter(filter) +
(filter == NotificationManager.INTERRUPTION_FILTER_ALL ? "" : "!!!")) + "\r\n" +
"accounts=" + accounts.size() +
" folders=" + db.folder().countTotal() +
" folders=" + db.folder().countSync() + "/" + db.folder().countTotal() +
" messages=" + db.message().countTotal() +
" rules=" + db.rule().countTotal() +
" ops=" + db.operation().getOperationCount() +