From 83ba6762cc43d9db581b979bb5e3445669e46cc2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Nov 2024 18:33:56 +0100 Subject: Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145). Signed-off-by: Daniel Baumann --- src/collectors/ebpf.plugin/ebpf_cgroup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/collectors/ebpf.plugin/ebpf_cgroup.c') diff --git a/src/collectors/ebpf.plugin/ebpf_cgroup.c b/src/collectors/ebpf.plugin/ebpf_cgroup.c index 9e1fa8231..0bc5989e1 100644 --- a/src/collectors/ebpf.plugin/ebpf_cgroup.c +++ b/src/collectors/ebpf.plugin/ebpf_cgroup.c @@ -373,13 +373,12 @@ void ebpf_create_charts_on_systemd(ebpf_systemd_args_t *chart) */ void *ebpf_cgroup_integration(void *ptr __maybe_unused) { - usec_t step = USEC_PER_SEC; int counter = NETDATA_EBPF_CGROUP_UPDATE - 1; heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, USEC_PER_SEC); //Plugin will be killed when it receives a signal while (!ebpf_plugin_stop()) { - (void)heartbeat_next(&hb, step); + heartbeat_next(&hb); // We are using a small heartbeat time to wake up thread, // but we should not update so frequently the shared memory data -- cgit v1.2.3