Merge pull request #237 from cubedro/develop
added 2 decimals to avg block time
This commit is contained in:
commit
63956b42ed
@ -396,7 +396,7 @@ angular.module('netStatsApp.filters', [])
|
||||
.filter('avgTimeFilter', function() {
|
||||
return function(time) {
|
||||
if(time < 60)
|
||||
return Math.round(time) + ' s';
|
||||
return parseFloat(time).toFixed(2) + ' s';
|
||||
|
||||
return moment.duration(Math.round(time), 's').humanize();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user