]> git.sesse.net Git - vlc/blobdiff - share/http/js/functions.js
src/misc/vlm.c : export the current playlist item's index for each instance
[vlc] / share / http / js / functions.js
index 0e9b2bfd859316808fb85ca4246b8a1d1627e45f..f7fdb65d6c8b5e6988973610e624feb8a0622bdd 100644 (file)
@@ -58,7 +58,7 @@ function format_time( s )
 {
     var hours = Math.floor(s/3600);
     var minutes = Math.floor((s/60)%60);
-    var seconds = s%60;
+    var seconds = Math.floor(s%60);
     if( hours < 10 ) hours = "0"+hours;
     if( minutes < 10 ) minutes = "0"+minutes;
     if( seconds < 10 ) seconds = "0"+seconds;