Skip to content

Commit

Permalink
support float for duration
Browse files Browse the repository at this point in the history
  • Loading branch information
PeronGH committed Sep 12, 2022
1 parent 45a35a8 commit 38185e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ while (true) {

const time = [start];

let i = parseInt(duration) * 2;
let i = parseFloat(duration) * 2;
while (--i) {
time.push(nextTime(time[time.length - 1]));
}
Expand Down

0 comments on commit 38185e1

Please sign in to comment.