From 896cccd7fff2510cbf135e5448ae80dcb7317199 Mon Sep 17 00:00:00 2001 From: chopster44 Date: Sun, 30 Nov 2025 16:51:45 +0000 Subject: [PATCH] More debug --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index cf7d5a5..58f8495 100644 --- a/src/index.ts +++ b/src/index.ts @@ -247,7 +247,7 @@ export default class Updater { if (dataView[0] == 1) { // send file await this.sendNextPacket(); - progressCallback(`Sending (${Math.floor((this._fileProgress *100)/this._fileSize)}), ${this._fileProgress} / ${this._fileSize}`); + progressCallback(`Sending (${Math.floor((this._fileProgress *100)/this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`); } else if (dataView[0] == 2) { // done logic if (this._fileProgress >= this._fileSize) { @@ -267,7 +267,7 @@ export default class Updater { } else { // send disagree await this.sendEndCmd(false); - progressCallback(`Error, starting over`); + progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`); this._fileProgress = 0; } } else if (dataView[0] == 15) {