diff options
Diffstat (limited to 'src/collectors/debugfs.plugin/debugfs_plugin.c')
-rw-r--r-- | src/collectors/debugfs.plugin/debugfs_plugin.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/collectors/debugfs.plugin/debugfs_plugin.c b/src/collectors/debugfs.plugin/debugfs_plugin.c index 94e3db631..37b4c83d8 100644 --- a/src/collectors/debugfs.plugin/debugfs_plugin.c +++ b/src/collectors/debugfs.plugin/debugfs_plugin.c @@ -159,7 +159,6 @@ static void debugfs_parse_args(int argc, char **argv) int main(int argc, char **argv) { - clocks_init(); nd_log_initialize_for_external_plugins("debugfs.plugin"); netdata_configured_host_prefix = getenv("NETDATA_HOST_PREFIX"); @@ -214,12 +213,11 @@ int main(int argc, char **argv) debugfs_parse_args(argc, argv); size_t iteration; - usec_t step = update_every * USEC_PER_SEC; heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, update_every * USEC_PER_SEC); for (iteration = 0; iteration < 86400; iteration++) { - heartbeat_next(&hb, step); + heartbeat_next(&hb); int enabled = 0; for (int i = 0; debugfs_modules[i].name; i++) { |