forked from visionmedia/node-progress
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option 'units', it is a map of unit labels to values (in seconds)…
…, e.g. { 's': 1, 'm': 60, 'h': 3600 } Modify ETA estimation to return the least granular unit for which the eta is >= 1, based on supplied values Add replacement token ':unit', returns the label associated with the unit value ProgressBar.defaultUnits holds the h/m/s arrangement; it is not actually used by default to preserve compatibility Example usage: new ProgressBar(':eta:unit', { units: ProgressBar.defaultUnits }); Example output: '12.3m' -> '38.5s' (changes from minutes to seconds over time) Addresses visionmedia#63
- Loading branch information
Kris Reeves
committed
May 18, 2015
1 parent
ae2f52e
commit 182b4bb
Showing
1 changed file
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters