diff options
author | Florrie <towerofnix@gmail.com> | 2017-10-30 16:43:34 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-10-30 16:43:34 -0300 |
commit | 75b1796205364237c090ddec1d5bc8d8d2ca3bb2 (patch) | |
tree | 99b9809ff381423be8ebdbd716dc45f066da488e /src | |
parent | d2460716084e918cad41964683420ca5c07d85ae (diff) |
Add missing percent symbol to mpv status line
Diffstat (limited to 'src')
-rw-r--r-- | src/loop-play.js | 4 |
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})) } |