« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/loop-play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loop-play.js b/src/loop-play.js
index c838ea7..760e63a 100644
--- a/src/loop-play.js
+++ b/src/loop-play.js
@@ -218,7 +218,8 @@ class SoXPlayer extends Player {
           const duration = Math.round(
             (curHour + remHour) * 3600 +
             (curMin + remMin) * 60 +
-            (curSec + remSec) * 1
+            (curSec + remSec) * 1 +
+            (curSecFrac + remSecFrac) / 100
           )
 
           const lenHour = Math.floor(duration / 3600)