Browse Source

Update NCNetworkingChunkedUpload.swift

Marino Faggiana 1 năm trước cách đây
mục cha
commit
60e7d64da7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(