diff options
Diffstat (limited to 'src/collectors/ebpf.plugin/ebpf_functions.c')
-rw-r--r-- | src/collectors/ebpf.plugin/ebpf_functions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/collectors/ebpf.plugin/ebpf_functions.c b/src/collectors/ebpf.plugin/ebpf_functions.c index 8e9fb01ed..267159a40 100644 --- a/src/collectors/ebpf.plugin/ebpf_functions.c +++ b/src/collectors/ebpf.plugin/ebpf_functions.c @@ -287,7 +287,7 @@ static void ebpf_function_socket_manipulation(const char *transaction, ebpf_module_t *em = &ebpf_modules[EBPF_MODULE_SOCKET_IDX]; char *words[PLUGINSD_MAX_WORDS] = {NULL}; - size_t num_words = quoted_strings_splitter_pluginsd(function, words, PLUGINSD_MAX_WORDS); + size_t num_words = quoted_strings_splitter_whitespace(function, words, PLUGINSD_MAX_WORDS); const char *name; int period = -1; rw_spinlock_write_lock(&ebpf_judy_pid.index.rw_spinlock); @@ -712,9 +712,9 @@ void *ebpf_function_thread(void *ptr) pthread_mutex_unlock(&lock); heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, USEC_PER_SEC); while(!ebpf_plugin_stop()) { - (void)heartbeat_next(&hb, USEC_PER_SEC); + heartbeat_next(&hb); if (ebpf_plugin_stop()) { break; |