Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npkgz/cli-progress
/ setTotal
Method
setTotal
lib/generic-bar.js:222–226 ·
view source on GitHub ↗
(total)
Source
from the content-addressed store, hash-verified
220
221
// set the total (limit) value
222
setTotal(total){
223
if
(typeof total !==
'undefined'
&& total >= 0){
224
this.total = total;
225
}
226
}
227
228
// force eta calculation update (long running processes)
229
updateETA(){
Callers
1
Example6
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected