From 1ccf9301983a6b85228d6ea8d5f9f7bef3c6d3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 20 Mar 2010 06:23:05 +0000 Subject: [PATCH] Round duration to int. Patch by Chris Dekter --- src/webui/static/app/dvr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 61d36b05..2fa897c7 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -112,7 +112,7 @@ tvheadend.dvrschedule = function() { value = value / 60; /* Nevermind the seconds */ if(value >= 60) { - var min = value % 60; + var min = parseInt(value % 60); var hours = parseInt(value / 60); if(min == 0) { @@ -120,7 +120,7 @@ tvheadend.dvrschedule = function() { } return hours + ' hrs, ' + min + ' min'; } else { - return value + ' min'; + return parsInt(value) + ' min'; } }