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