added 2 decimals to avg block time

This commit is contained in:
cubedro 2015-07-30 21:54:34 +03:00
parent dadb8b195f
commit 5f21a82a3e
1 changed files with 1 additions and 1 deletions

View File

@ -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();
};