[overlay] fix an crash with the overlay when the logs are from the future

pull/111/merge
Timothy Stack 7 years ago
parent a973f7f934
commit 7063c01988

@ -88,7 +88,7 @@ void field_overlay_source::build_summary_lines(const listview_curses &lv)
bookmark_vector<vis_line_t> &error_bookmarks =
bm[&logfile_sub_source::BM_ERRORS];
if (from_five_min_ago != -1) {
if (now > last_line->get_time() && from_five_min_ago != -1) {
bookmark_vector<vis_line_t>::iterator five_min_lower =
lower_bound(error_bookmarks.begin(),
error_bookmarks.end(),

Loading…
Cancel
Save