fix seconds place
This commit is contained in:
parent
318c020d87
commit
e00e1b5d5f
|
@ -45,8 +45,9 @@ def to_hms secs
|
||||||
[
|
[
|
||||||
Math.floor secs / 3600
|
Math.floor secs / 3600
|
||||||
Math.floor (secs % 3600) / 60
|
Math.floor (secs % 3600) / 60
|
||||||
(Math.round((secs % 3600 % 60) * 1000) / 1000).toFixed(3)
|
Math.floor ((secs % 3600 % 60) * 1000) / 1000
|
||||||
].map(do String($1).padStart(2,0)).join("-")
|
].map(do String($1).padStart(2,0)).join("-") +
|
||||||
|
'.' + String(Math.floor secs % 1 * 1000).padEnd(3,0)
|
||||||
|
|
||||||
def main
|
def main
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue