Skip to content

Commit ea73371

Browse files
committed
set upper eta display limit to 115days
1 parent 156fffa commit ea73371

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 3.9.0 ###
44

55
* Added: example howto use multibars in synchronous context
6+
* Changed: upper eta display limit to `1e7` (115days)
67

78
### 3.8.2 ###
89

lib/eta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class ETA{
5555
}else if (!isFinite(eta)){
5656
this.eta = 'INF';
5757

58-
// > 100k s ?
59-
}else if (eta > 100000){
58+
// > 10M s ? - set upper display limit ~115days (1e7/60/60/24)
59+
}else if (eta > 1e7){
6060
this.eta = 'INF';
6161

6262
// negative ?

0 commit comments

Comments
 (0)