소스 검색

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)