Explorar o código

Update NCNetworkingChunkedUpload.swift

Marino Faggiana hai 1 ano
pai
achega
60e7d64da7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      iOSClient/Networking/NCNetworkingChunkedUpload.swift

+ 1 - 1
iOSClient/Networking/NCNetworkingChunkedUpload.swift

@@ -102,7 +102,7 @@ extension NCNetworking {
 
                     if let size = size {
                         let totalBytesExpected = metadata.size
-                        let totalBytes = size + progress.completedUnitCount
+                        let totalBytes = size
                         let fractionCompleted = Double(totalBytes) / Double(totalBytesExpected)
 
                         NotificationCenter.default.postOnMainThread(