Eliminate time creep in RFOS
This commit is contained in:
parent
b0bead2bc0
commit
7b8e3bf47c
|
@ -222,9 +222,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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
|
Loading…
Reference in New Issue