Commit 93204fde by pye52

Merge branch 'develop'

parents 2feb36be 40103ec2
...@@ -96,7 +96,6 @@ public class UpdateCommandWorker extends CommandWorker { ...@@ -96,7 +96,6 @@ public class UpdateCommandWorker extends CommandWorker {
Buffer sinkBuffer = sink.getBuffer(); Buffer sinkBuffer = sink.getBuffer();
for (long bytesRead; (bytesRead = source.read(sinkBuffer, BUFFER_SIZE)) != -1; ) { for (long bytesRead; (bytesRead = source.read(sinkBuffer, BUFFER_SIZE)) != -1; ) {
sink.emit();
totalBytesRead += bytesRead; totalBytesRead += bytesRead;
int progress = (int) ((totalBytesRead * 100) / total); int progress = (int) ((totalBytesRead * 100) / total);
inProgress("下载进度: " + progress + "%"); inProgress("下载进度: " + progress + "%");
......
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 sign in to comment