summaryrefslogtreecommitdiffstats
path: root/collectors/macos.plugin/plugin_macos.c
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2023-08-03 13:13:36 +0300
committerGitHub <noreply@github.com>2023-08-03 13:13:36 +0300
commit0e230a260ec7d8b4d6dc5c7165da6ab103d096b3 (patch)
treeb46528e5ace00358c342ea3d571d85bda5c546ed /collectors/macos.plugin/plugin_macos.c
parent72549b3a2247f763180925d7c84b0eee8086fa14 (diff)
Revert "Refactor RRD code. (#15423)" (#15723)
This reverts commit 440bd51e08fdfa2a4daa191fb68643456028a753. dbengine was still being used for non-zero tiers even on non-dbengine modes.
Diffstat (limited to 'collectors/macos.plugin/plugin_macos.c')
-rw-r--r--collectors/macos.plugin/plugin_macos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/macos.plugin/plugin_macos.c b/collectors/macos.plugin/plugin_macos.c
index 0b60b060a1..3aaa46c729 100644
--- a/collectors/macos.plugin/plugin_macos.c
+++ b/collectors/macos.plugin/plugin_macos.c
@@ -53,7 +53,7 @@ void *macos_main(void *ptr)
worker_register_job_name(i, macos_modules[i].dim);
}
- usec_t step = rrdb.localhost->update_every * USEC_PER_SEC;
+ usec_t step = localhost->rrd_update_every * USEC_PER_SEC;
heartbeat_t hb;
heartbeat_init(&hb);
@@ -69,7 +69,7 @@ void *macos_main(void *ptr)
netdata_log_debug(D_PROCNETDEV_LOOP, "macos calling %s.", pm->name);
worker_is_busy(i);
- pm->enabled = !pm->func(rrdb.localhost->update_every, hb_dt);
+ pm->enabled = !pm->func(localhost->rrd_update_every, hb_dt);
if (unlikely(netdata_exit))
break;