Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more comprehensible timing when it is high #1

Open
nherment opened this issue May 8, 2014 · 3 comments
Open

more comprehensible timing when it is high #1

nherment opened this issue May 8, 2014 · 3 comments

Comments

@nherment
Copy link
Contributor

nherment commented May 8, 2014

importing [                   ] 0% 809869.4s

I don't know how much is 809869.4 seconds. Would it be possible to switch to hours + days when the remaining time is high ?

Trello Card

@mcollina
Copy link
Contributor

mcollina commented May 8, 2014

It will be a good feature addition to https://github.com/visionmedia/node-progress (which I'm using).

I think that it might be long and I won't be sure it so important, but maybe I'm wrong :(

Plus, having that updated too often is wasted CPU time.

@gagle
Copy link

gagle commented May 21, 2014

You can try status-bar. It displays > 1h and > 1d when the remaining time is bigger than 3600 seconds.

Code used:

Formatter.prototype.time = function (s){
  if (s === undefined) return "--:--";
  if (s >= 86400) return " > 1d";
  if (s >= 3600) return " > 1h";
  var str;
  var min = Math.floor (s/60);
  var sec = Math.floor (s%60);
  return zero (min) + ":" + zero (sec);
};

@mcollina
Copy link
Contributor

Status bar is very nice, and can be highly customized, I'll have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants