Skip to content

Commit

Permalink
fix(userspace/falco): fix jemalloc enabled in minimal build.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Feb 6, 2025
1 parent 8ea272e commit 14a8ee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/falco/stats_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ void stats_writer::collector::get_metrics_output_fields_additional(
METRIC_VALUE_UNIT_MEMORY_BYTES,
METRIC_VALUE_METRIC_TYPE_MONOTONIC,
val);
#if defined(__linux__) and !defined(MINIMAL_BUILD) and !defined(__EMSCRIPTEN__)
if(m_writer->m_config->m_metrics_convert_memory_to_mb &&
m_writer->m_output_rule_metrics_converter) {
m_writer->m_output_rule_metrics_converter
Expand All @@ -469,6 +470,9 @@ void stats_writer::collector::get_metrics_output_fields_additional(
} else {
output_fields[metric.name] = metric.value.u64;
}
#else
output_fields[metric.name] = metric.value.u64;
#endif
}
}
}
Expand Down

0 comments on commit 14a8ee0

Please sign in to comment.