소스 검색

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];
         };