mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
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()
|
||||
{
|
||||
long lastMs = midnight.toInstant().toEpochMilli();
|
||||
midnight = nextMidnight(midnight);
|
||||
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - lastMs);
|
||||
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - System.currentTimeMillis());
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user