Skip to content

Commit

Permalink
Check longer time field first
Browse files Browse the repository at this point in the history
  • Loading branch information
mstemm committed Apr 5, 2019
1 parent b02273b commit 92d6be8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions userspace/engine/json_evt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,18 @@ jevt_filter_check::~jevt_filter_check()

int32_t jevt_filter_check::parse_field_name(const char *str, bool alloc_state, bool needed_for_filtering)
{
if(strncmp(s_jevt_time_field.c_str(), str, s_jevt_time_field.size()) == 0)
{
m_field = s_jevt_time_field;
return s_jevt_time_field.size();
}

if(strncmp(s_jevt_time_iso_8601_field.c_str(), str, s_jevt_time_iso_8601_field.size()) == 0)
{
m_field = s_jevt_time_iso_8601_field;
return s_jevt_time_iso_8601_field.size();
}

if(strncmp(s_jevt_time_field.c_str(), str, s_jevt_time_field.size()) == 0)
{
m_field = s_jevt_time_field;
return s_jevt_time_field.size();
}

if(strncmp(s_jevt_rawtime_field.c_str(), str, s_jevt_rawtime_field.size()) == 0)
{
m_field = s_jevt_rawtime_field;
Expand Down

0 comments on commit 92d6be8

Please sign in to comment.