Use Math.floor() instead of parseInt(). Should fix ugly errors in EPG
ticket #69
This commit is contained in:
parent
5ba7e80e53
commit
bfeeb3392c
1 changed files with 3 additions and 3 deletions
|
@ -91,11 +91,11 @@ tvheadend.epg = function() {
|
|||
}
|
||||
|
||||
function renderDuration(value){
|
||||
value = value / 60; /* Nevermind the seconds */
|
||||
|
||||
value = Math.floor(value / 60);
|
||||
|
||||
if(value >= 60) {
|
||||
var min = value % 60;
|
||||
var hours = parseInt(value / 60);
|
||||
var hours = Math.floor(value / 60);
|
||||
|
||||
if(min == 0) {
|
||||
return hours + ' hrs';
|
||||
|
|
Loading…
Add table
Reference in a new issue