Skip to content

Commit

Permalink
fix sources match (netdata#16271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Oct 25, 2023
1 parent 6769de6 commit a41bf57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collectors/systemd-journal.plugin/systemd-journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,8 @@ static void journal_files_registry_update() {

static bool jf_is_mine(struct journal_file *jf, FUNCTION_QUERY_STATUS *fqs) {

if((fqs->source_type == SDJF_NONE || (jf->source_type & fqs->source_type)) &&
(!fqs->sources || simple_pattern_matches(fqs->sources, string2str(jf->source)))) {
if((fqs->source_type == SDJF_NONE && !fqs->sources) || (jf->source_type & fqs->source_type) ||
(fqs->sources && simple_pattern_matches(fqs->sources, string2str(jf->source)))) {

usec_t anchor_delta = JOURNAL_VS_REALTIME_DELTA_MAX_UT;
usec_t first_ut = jf->msg_first_ut;
Expand Down

0 comments on commit a41bf57

Please sign in to comment.