Skip to content

Commit

Permalink
fix(pman): remove a wrong flag
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 committed Aug 28, 2024
1 parent 2e1022f commit 5151e76
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion userspace/libpman/src/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ struct metrics_v2 *pman_get_metrics_v2(uint32_t flags, uint32_t *nstats, int32_t
{
case RUN_CNT:
strlcat(g_state.stats[offset].name, modern_bpf_libbpf_stats_names[RUN_CNT], sizeof(g_state.stats[offset].name));
g_state.stats[stat].flags = METRICS_V2_KERNEL_COUNTERS;
g_state.stats[stat].unit = METRIC_VALUE_UNIT_COUNT;
g_state.stats[stat].metric_type = METRIC_VALUE_METRIC_TYPE_MONOTONIC;
g_state.stats[offset].value.u64 = info.run_cnt;
Expand Down

0 comments on commit 5151e76

Please sign in to comment.