Skip to content

Commit

Permalink
fix(libsinsp): fix Falco compilation error on libsinsp_metrics::set_m…
Browse files Browse the repository at this point in the history
…etric_value

Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra committed Jul 22, 2024
1 parent 31d1adf commit f2581cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions userspace/libsinsp/metrics_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class output_rule_metrics_converter : public metrics_converter

class libsinsp_metrics
{
protected:
public:
template <typename T>
static void set_metric_value(metrics_v2& metric, metrics_v2_value_type type, T val)
{
Expand Down Expand Up @@ -245,7 +245,6 @@ class libsinsp_metrics
}
}

public:
template <typename T>
static inline metrics_v2 new_metric(const char* name, uint32_t flags, metrics_v2_value_type type, metrics_v2_value_unit unit, metrics_v2_metric_type metric_type, T val)
{
Expand Down Expand Up @@ -346,7 +345,7 @@ class libs_metrics_collector
metric.type = type;
metric.unit = unit;
metric.metric_type = metric_type;
set_metric_value(metric, type, val);
libsinsp_metrics::set_metric_value(metric, type, val);
return metric;
}

Expand Down

0 comments on commit f2581cf

Please sign in to comment.