More debug

This commit is contained in:
2025-11-30 16:51:45 +00:00
parent 66cbb31dde
commit 896cccd7ff

View File

@@ -247,7 +247,7 @@ export default class Updater {
if (dataView[0] == 1) { if (dataView[0] == 1) {
// send file // send file
await this.sendNextPacket(); 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) { } else if (dataView[0] == 2) {
// done logic // done logic
if (this._fileProgress >= this._fileSize) { if (this._fileProgress >= this._fileSize) {
@@ -267,7 +267,7 @@ export default class Updater {
} else { } else {
// send disagree // send disagree
await this.sendEndCmd(false); await this.sendEndCmd(false);
progressCallback(`Error, starting over`); progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);
this._fileProgress = 0; this._fileProgress = 0;
} }
} else if (dataView[0] == 15) { } else if (dataView[0] == 15) {