mirror of
https://github.com/tstack/lnav.git
synced 2024-08-16 08:20:29 +03:00
[log_format] fix rollover when there is no date in the timestamp
Fixes #1178
This commit is contained in:
parent
45be4d3829
commit
1b31d7401a
@ -375,7 +375,7 @@ log_format::check_for_new_year(std::vector<logline>& dst,
|
||||
off_month = 1;
|
||||
} else if (!(etm.et_flags & ETF_DAY_SET) && (diff >= (60 * 60))) {
|
||||
off_day = 1;
|
||||
} else if (!(etm.et_flags & ETF_DAY_SET)) {
|
||||
} else if (!(etm.et_flags & ETF_HOUR_SET) && (diff >= 60)) {
|
||||
off_hour = 1;
|
||||
} else {
|
||||
do_change = false;
|
||||
|
Loading…
Reference in New Issue
Block a user