Round duration to int.

Patch by Chris Dekter
This commit is contained in:
Andreas Öman 2010-03-20 06:23:05 +00:00
parent d167cada79
commit 1ccf930198

View file

@ -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';
}
}