« get me outta code hell

Add missing percent symbol to mpv status line - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-10-30 16:43:34 -0300
committerFlorrie <towerofnix@gmail.com>2017-10-30 16:43:34 -0300
commit75b1796205364237c090ddec1d5bc8d8d2ca3bb2 (patch)
tree99b9809ff381423be8ebdbd716dc45f066da488e /src
parentd2460716084e918cad41964683420ca5c07d85ae (diff)
Add missing percent symbol to mpv status line
Diffstat (limited to 'src')
-rw-r--r--src/loop-play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/loop-play.js b/src/loop-play.js
index dbc0ba8..4902fd7 100644
--- a/src/loop-play.js
+++ b/src/loop-play.js
@@ -96,7 +96,9 @@ class MPVPlayer extends Player {
         const curSecTotal = (3600 * curHour) + (60 * curMin) + (1 * curSec)
         const lenSecTotal = (3600 * lenHour) + (60 * lenMin) + (1 * lenSec)
         const percentVal = (100 / lenSecTotal) * curSecTotal
-        const percentStr = (Math.trunc(percentVal * 100) / 100).toFixed(2)
+        const percentStr = (
+          (Math.trunc(percentVal * 100) / 100).toFixed(2) + '%'
+        )
 
         this.printStatusLine(createStatusLine({percentStr, curStr, lenStr}))
       }