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) {