From 489f831a70e32b17940290445ba0effb654dbe9d Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Fri, 8 Apr 2022 10:26:38 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C33138 --- server/user.mediacube.gui/js/searchitems.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/user.mediacube.gui/js/searchitems.js b/server/user.mediacube.gui/js/searchitems.js index d7459735..44fdebe1 100644 --- a/server/user.mediacube.gui/js/searchitems.js +++ b/server/user.mediacube.gui/js/searchitems.js @@ -32,13 +32,13 @@ setSource(null); function secondsToSMPTE(seconds) { var f = Math.floor((seconds % 1) * 25); - var s = Math.floor(seconds); - var m = Math.floor(s / 60); - var h = Math.floor(m / 60); - m = m % 60; - s = s % 60; + var seconds = Math.floor(seconds); + var minutes = Math.floor(seconds / 60); + var hours = Math.floor(minutes / 60); + minutes = minutes % 60; + seconds = seconds % 60; - return {h: h, m: m, s: s, f: f}; + return {h: hours, m: minutes, s: seconds, f: f}; } function SMPTEToString(timecode) { -- 2.54.0