]> git.plutz.net Git - serve0/blobdiff - templates/playctl.html.sh
show time in progress bar
[serve0] / templates / playctl.html.sh
index 6f435e7f4f6e5b379b82dc43ccf54f1ce8a1e2ad..62fe1d262a1e48105968636462a56cc0e3a6a2cb 100755 (executable)
@@ -103,8 +103,8 @@ EOF
 
 cnt=0
 progress \
-| while read n; do
-  printf '<span class="progress"><span style="width: %s%%;">%s</span></span>\n' $n $n
+| while read p t; do
+  printf '<span class="progress"><span style="width: %d%%;">%s</span></span>\n' "${p}" "${t}"
 done
 
 # vi:set filetype=html: