瀏覽代碼

Improvements Media

marinofaggiana 6 年之前
父節點
當前提交
1ca522ac9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Database/NCManageDatabase.swift

+ 1 - 1
iOSClient/Database/NCManageDatabase.swift

@@ -1975,7 +1975,7 @@ class NCManageDatabase: NSObject {
                     sizeInsert = sizeInsert + Int64(photo.size)
                 }
                 realm.add(photos, update: true)
-                differenceInsert = sizeDelete - sizeInsert
+                differenceInsert = sizeInsert - sizeDelete
             }
         } catch let error {
             print("[LOG] Could not write to database: ", error)