fix: setup progress bar indicates wrong progress
This commit is contained in:
parent
04a5485319
commit
fc2b3f33a6
@ -50,16 +50,16 @@ final class SetupThread extends Thread {
|
||||
deleteFolder(stagingPrefixFile);
|
||||
}
|
||||
|
||||
int totalBytes = 0;
|
||||
int totalReadBytes = 0;
|
||||
final byte[] buffer = new byte[8096];
|
||||
final List<Pair<String, String>> symlinks = new ArrayList<>(50);
|
||||
|
||||
totalBytes = sourceConnection.getSize();
|
||||
|
||||
try (ZipInputStream zipInput = new ZipInputStream(sourceConnection.getInputStream())) {
|
||||
ZipEntry zipEntry;
|
||||
|
||||
int totalBytes = sourceConnection.getSize();
|
||||
|
||||
while ((zipEntry = zipInput.getNextEntry()) != null) {
|
||||
totalReadBytes += zipEntry.getCompressedSize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user