1
1
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:
Tim Stack 2023-07-29 14:37:35 -07:00
parent 45be4d3829
commit 1b31d7401a

View File

@ -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;