Eliminate time creep in RFOS

This commit is contained in:
Joakim Erdfelt 2017-02-27 14:20:06 -07:00
parent 196b2c384b
commit 1e46576bf4
1 changed files with 1 additions and 2 deletions

View File

@ -212,9 +212,8 @@ public class RolloverFileOutputStream extends FilterOutputStream
private void scheduleNextRollover() private void scheduleNextRollover()
{ {
long lastMs = midnight.toInstant().toEpochMilli();
midnight = nextMidnight(midnight); midnight = nextMidnight(midnight);
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - lastMs); __rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - System.currentTimeMillis());
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */