Commit f468f627 by 冷斌

fix bug

parent 5626d6ad
...@@ -13,9 +13,6 @@ class Progress ...@@ -13,9 +13,6 @@ class Progress
*/ */
public static function getProgress($old_file, $new_file) public static function getProgress($old_file, $new_file)
{ {
var_dump($old_file, $new_file);
die;
// 进度报告地址 // 进度报告地址
$log_file = $new_file.'.log'; $log_file = $new_file.'.log';
if(is_file($log_file)){ if(is_file($log_file)){
...@@ -62,7 +59,6 @@ class Progress ...@@ -62,7 +59,6 @@ class Progress
exec($cmd, $totalTime); exec($cmd, $totalTime);
} }
$totalTime = explode(":", $totalTime[0]); $totalTime = explode(":", $totalTime[0]);
$totalTime_ss = $totalTime[0] * 3600 + $totalTime[1] * 60 + round($totalTime[2]); //转化为秒 $totalTime_ss = $totalTime[0] * 3600 + $totalTime[1] * 60 + round($totalTime[2]); //转化为秒
$haddleTime = explode(":", $haddleTime[0]); $haddleTime = explode(":", $haddleTime[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment