Eliminate time creep in RFOS
This commit is contained in:
parent
0d4fcd0cb4
commit
897d0264c9
|
@ -210,9 +210,8 @@ public class RolloverFileOutputStream extends FilterOutputStream
|
|||
|
||||
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());
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
Loading…
Reference in New Issue