瀏覽代碼

【IOS】相册备份传输进度无传输速率展示

huangxiaodong 1 年之前
父節點
當前提交
48f09164b7

+ 4 - 2
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileView/backupsFileRecordCell.m

@@ -271,6 +271,7 @@
         if(_curPhotosBackupsTaskModel.preTimeInterval <= 0){
             _fileSpeedlabel.text = @"--";
             [self handlFileTimelabelFunBy:0];
+            HLog(@"111: %f",_curPhotosBackupsTaskModel.preTimeInterval);
         }
         else{
             NSTimeInterval  timers = _curPhotosBackupsTaskModel.curTimeInterval - _curPhotosBackupsTaskModel.preTimeInterval;
@@ -293,7 +294,6 @@
             }
         }
         
-        _curPhotosBackupsTaskModel.preTimeInterval = _curPhotosBackupsTaskModel.curTimeInterval;
     }
     else if(_curPhotosBackupsTaskModel.curBackupsState == backupsStateSuspend){
         
@@ -318,6 +318,8 @@
     _fileNamelabel.text = NSLocalizedString(@"set_Privacy_title_image",nil);
     
     
+    _curPhotosBackupsTaskModel.preTimeInterval = _curPhotosBackupsTaskModel.curTimeInterval;
+    
     if(_curPhotosBackupsTaskModel.curBackupsState == backupsStateDone){
         
         NSString * curTimerStr = _curPhotosBackupsTaskModel.bg_updateTime;
@@ -414,7 +416,7 @@
     }
     
     _fileTimelabel.text = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"Estimated_time",nil),timeStr];
-
+    HLog(@"111: %@  222: %@   333: %ld 444:%f 555:%ld 666:%ld",_fileTimelabel.text,timeStr,speed,estimateTime,_curPhotosBackupsTaskModel.totalBytes,_curPhotosBackupsTaskModel.didUploadBytes);
 }
 
 - (void)handlFileProgresslabelFun