Skip to content

Commit

Permalink
Calculate shift value in seconds prior to cast
Browse files Browse the repository at this point in the history
This is a fix to the fractional time-shift that was added in 2632b29
  • Loading branch information
Tom Brauer committed Jul 12, 2024
1 parent 4a5bffd commit 45d2f8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private void timeShifterTask() {
int toSeconds = timeUnit.toSeconds();

// Cast is validated on step 2 of the wizard
long seconds = (long) value * toSeconds;
long seconds = (long) (value * toSeconds);

Duration interval = Duration.ofSeconds(seconds);

Expand Down

0 comments on commit 45d2f8b

Please sign in to comment.