From 855eb07d89c417a686ea03042baecde383d1e2ac Mon Sep 17 00:00:00 2001 From: chopster44 Date: Mon, 1 Dec 2025 21:20:55 +0000 Subject: [PATCH] set file progress rather than adding --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8eddcf4..96d2e0f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -288,7 +288,7 @@ export default class Updater { else { // should be the file progress let fileProgressView = new Uint32Array(rawData); - this._fileProgress += (dataView[3] << 24) | + this._fileProgress = (dataView[3] << 24) | (dataView[2] << 16) | (dataView[1] << 8) | dataView[0]; this.sendNextPacket();