MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / _fireProgress

Method _fireProgress

src/shared/utils/TaskProgress.ts:77–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 _fireProgress() {
78 const progressText = `(${this._stage}/${this._stageCount}) ${this._stageTask} (${this._stageProgressTask})`;
79 const stageSize = (1 / this._stageCount);
80 const progressPercent = ((this._stage - 1) * stageSize) + (stageSize * this._stageProgressDone);
81 this.emit('progress', progressText, +(progressPercent.toFixed(4))); // + converts to number after toFixed converts to string
82 }
83}

Callers 2

setStageMethod · 0.95
setStageProgressMethod · 0.95

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected