Bugfix: Change mempool block time precision. (#650)

* Fix time precision.

* Fix rounding numbers only for minutes range.
Fix reflected avg time to ETA transactions.

* Fix now variable update.
This commit is contained in:
Miguel Medeiros authored and GitHub committed 2021-07-25 01:26:29 +03:00
1 parent 11f5e99187
commit f6a889298c
6 files changed
+43 -9

No files matched your search

@@ -56,7 +56,7 @@ export class TimeSpanComponent implements OnInit, OnChanges, OnDestroy {
if (seconds < 60) {
return $localize`:@@date-base.just-now:Just now`;
}
let counter;
let counter: number;
for (const i in this.intervals) {
if (this.intervals.hasOwnProperty(i)) {
counter = Math.floor(seconds / this.intervals[i]);