Commit 3b71a00
committed
Round initialTime in RollingFileManager
Caching of filesystem timestamps (at least in ext4 on Linux) results in non-accurate creation timestamps.
Thus, let's round it to the second.
Rounding is also applied for the lastModified time, but I'm not sure whether it's needed there.
Fixes #3068.1 parent 2f79c39 commit 3b71a00
File tree
1 file changed
+9
-5
lines changed- log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
922 | 924 | | |
923 | | - | |
| 925 | + | |
924 | 926 | | |
925 | | - | |
926 | | - | |
| 927 | + | |
| 928 | + | |
927 | 929 | | |
928 | 930 | | |
929 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
930 | 934 | | |
931 | 935 | | |
932 | 936 | | |
| |||
0 commit comments