From 0a4d2e3f4b09444679bf94eefc6cf6e4ad86d543 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Wed, 12 Dec 2012 21:57:52 +0100 Subject: OSD is using toFixed(0) so no more strange times like 1.9999999 --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 8be823c..36f9188 100644 --- a/index.html +++ b/index.html @@ -744,9 +744,9 @@ function GetEPG(epgchan) } if(cds){ // CDS has short info, other providers, a little longer. - EPGNow = th + ":" + tm + " (" + EPGminutes + " / " + ((event.duration/60)-EPGminutes) + ")" + " " + event.name + " " + EPGShortnow; + EPGNow = th + ":" + tm + " (" + EPGminutes + " / " + ((event.duration/60)-EPGminutes).toFixed(0) + ")" + " " + event.name + " " + EPGShortnow; } else { - EPGNow = th + ":" + tm + " (" + EPGminutes + " / " + ((event.duration/60)-EPGminutes) + ")" + " " + event.name + " "; + EPGNow = th + ":" + tm + " (" + EPGminutes + " / " + ((event.duration/60)-EPGminutes).toFixed(0) + ")" + " " + event.name + " "; } if (!event.time) { @@ -785,7 +785,7 @@ function GetEPG(epgchan) if(cds){ // CDS has short info, other providers, a little longer. - EPGNext = th + ":" + tm + " (" + (event.duration/60) + ")" + " " + event.name + " " + EPGShortnext; + EPGNext = th + ":" + tm + " (" + (event.duration/60).toFixed(0) + ")" + " " + event.name + " " + EPGShortnext; } else { EPGNext = th + ":" + tm + " (" + (event.duration/60) + ")" + " " + event.name + " "; } -- cgit v1.2.3