浏览代码

GoogleDrive: fix the downloading progress bar that does not showing

Pierre SAGASPE 5 年之前
父节点
当前提交
401b6d6826
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/VLCGoogleDriveController.m

+ 1 - 1
Sources/VLCGoogleDriveController.m

@@ -315,7 +315,7 @@
                 self->_lastStatsUpdate = [NSDate timeIntervalSinceReferenceDate];
             }
 
-            CGFloat progress = (CGFloat)weakFetcher.downloadedLength / (CGFloat)[file.size unsignedLongValue];
+            CGFloat progress = (CGFloat)totalBytesWritten / (CGFloat)[file.size unsignedLongValue];
             if ([self.delegate respondsToSelector:@selector(currentProgressInformation:)])
                 [self.delegate currentProgressInformation:progress];
         };