Update bytes.js
This commit is contained in:
parent
c290e3f913
commit
9e0673f077
|
@ -12,7 +12,7 @@ angular.module('webui.filters.bytes', ["webui.services.utils"])
|
|||
|
||||
return function(time) {
|
||||
time = parseInt(time, 10);
|
||||
if (!time || !isFinite(time)) return "∞";
|
||||
if (!time || !isFinite(time)) return "∞";
|
||||
var secs = time % 60;
|
||||
if (time < 60) return secs + "s";
|
||||
var mins = Math.floor((time % 3600) / 60)
|
||||
|
|
Loading…
Reference in New Issue
Block a user