MCPcopy Create free account
hub / github.com/npkgz/cli-progress / update

Method update

lib/eta.js:18–24  ·  view source on GitHub ↗
(time, value, total)

Source from the content-addressed store, hash-verified

16
17 // add new values to calculation buffer
18 update(time, value, total){
19 this.valueBuffer.push(value);
20 this.timeBuffer.push(time);
21
22 // trigger recalculation
23 this.calculate(total-value);
24 }
25
26 // fetch estimated time
27 getTime(){

Callers 11

updateBarFunction · 0.45
showPresetFunction · 0.45
showPresetFunction · 0.45
runSinglebarFunction · 0.45
runMultibarFunction · 0.45
Example5Function · 0.45
Example1Function · 0.45
Example3Function · 0.45
Example5Function · 0.45
Example6Function · 0.45

Calls 1

calculateMethod · 0.95

Tested by

no test coverage detected