Update bytes.js

This commit is contained in:
robbielj 2014-03-14 13:55:18 +01:00
parent c290e3f913
commit 9e0673f077

View File

@ -12,7 +12,7 @@ angular.module('webui.filters.bytes', ["webui.services.utils"])
return function(time) { return function(time) {
time = parseInt(time, 10); time = parseInt(time, 10);
if (!time || !isFinite(time)) return "∞"; if (!time || !isFinite(time)) return "∞";
var secs = time % 60; var secs = time % 60;
if (time < 60) return secs + "s"; if (time < 60) return secs + "s";
var mins = Math.floor((time % 3600) / 60) var mins = Math.floor((time % 3600) / 60)