]> git.sesse.net Git - vlc/blobdiff - share/lua/http/requests/status.xml
Revert "luahttp: fix service discovery loading."
[vlc] / share / lua / http / requests / status.xml
index 6523c04e7a0ce26c54e614304386a58a09171230..f4fc486bd6b1ba2743957ff86c7a39da952f0429 100644 (file)
@@ -108,8 +108,8 @@ local vout = input and vlc.object.find(input,'vout','child')
 ?>
 <root>
   <volume><?vlc print(vlc.volume.get()) ?></volume>
-  <length><?vlc if input then print(vlc.var.get(input,"length")) else print(0) end?></length>
-  <time><?vlc if input then print(vlc.var.get(input,"time")) else print(0) end?></time>
+  <length><?vlc if input then print(math.floor(vlc.var.get(input,"length"))) else print(0) end?></length>
+  <time><?vlc if input then print(math.floor(vlc.var.get(input,"time"))) else print(0) end?></time>
   <state><?vlc print(status) ?></state>
   <position><?vlc if input then print(vlc.var.get(input,"position")) else print(0) end?></position>
   <fullscreen><?vlc if vout then vlc.var.get(vout,"fullscreen") else print(0) end?></fullscreen>