Sukolsak Sakshuwong 4 лет назад
Родитель
Сommit
d0705ac226
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/mol-util/zip/deflate.ts

+ 1 - 1
src/mol-util/zip/deflate.ts

@@ -139,7 +139,7 @@ export async function _deflateRaw(runtime: RuntimeContext, data: Uint8Array, out
 
     while (ctx.i < dlen) {
         if (runtime.shouldUpdate) {
-            await runtime.update({ message: 'Deflating...', current: ctx.pos, max: data.length });
+            await runtime.update({ message: 'Deflating...', current: ctx.i, max: dlen });
         }
         deflateChunk(ctx, 1024 * 1024);
     }