Skip to content

Commit

Permalink
Eliminate time creep in RFOS
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Aug 8, 2017
1 parent b0bead2 commit 7b8e3bf
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -222,9 +222,8 @@ public static ZonedDateTime nextMidnight(ZonedDateTime dateTime)

private void scheduleNextRollover()
{
long lastMs = midnight.toInstant().toEpochMilli();
midnight = nextMidnight(midnight);
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - lastMs);
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - System.currentTimeMillis());
}

/* ------------------------------------------------------------ */
Expand Down

0 comments on commit 7b8e3bf

Please sign in to comment.