Skip to content

Commit

Permalink
added eta display notice
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiDittrich committed Jan 31, 2021
1 parent ea73371 commit d0f6a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ The progressbar can be customized by using the following build-in placeholders.
- `{percentage}` - the current progress in percent (0-100)
- `{total}` - the end value
- `{value}` - the current value set by last `update()` call
- `{eta}` - expected time of accomplishment in seconds
- `{eta}` - expected time of accomplishment in seconds (limmited to 115days, otherwise INF is displayed)
- `{duration}` - elapsed time in seconds
- `{eta_formatted}` - expected time of accomplishment formatted into appropriate units
- `{duration_formatted}` - elapsed time formatted into appropriate units
Expand All @@ -291,7 +291,7 @@ Custom formatters
Instead of a "static" format string it is also possible to pass a custom callback function as formatter.
For a full example (including params) take a look on `lib/formatter.js`

### Example ###
### Example 1 ###

```js
function formatter(options, params, payload){
Expand Down

0 comments on commit d0f6a42

Please sign in to comment.