Explorar el Código

Improvements Media

marinofaggiana hace 6 años
padre
commit
1ca522ac9c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
                     sizeInsert = sizeInsert + Int64(photo.size)
                 }
                 }
                 realm.add(photos, update: true)
                 realm.add(photos, update: true)
-                differenceInsert = sizeDelete - sizeInsert
+                differenceInsert = sizeInsert - sizeDelete
             }
             }
         } catch let error {
         } catch let error {
             print("[LOG] Could not write to database: ", error)
             print("[LOG] Could not write to database: ", error)