diff options
author | vkalintiris <vasilis@netdata.cloud> | 2023-08-03 13:13:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 13:13:36 +0300 |
commit | 0e230a260ec7d8b4d6dc5c7165da6ab103d096b3 (patch) | |
tree | b46528e5ace00358c342ea3d571d85bda5c546ed /collectors/macos.plugin | |
parent | 72549b3a2247f763180925d7c84b0eee8086fa14 (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')
-rw-r--r-- | collectors/macos.plugin/plugin_macos.c | 4 | ||||
-rw-r--r-- | collectors/macos.plugin/plugin_macos.h | 1 |
2 files changed, 2 insertions, 3 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; diff --git a/collectors/macos.plugin/plugin_macos.h b/collectors/macos.plugin/plugin_macos.h index febdc767e1..2c673a2243 100644 --- a/collectors/macos.plugin/plugin_macos.h +++ b/collectors/macos.plugin/plugin_macos.h @@ -4,7 +4,6 @@ #define NETDATA_PLUGIN_MACOS_H 1 #include "daemon/common.h" -#include "collectors/utils.h" int do_macos_sysctl(int update_every, usec_t dt); int do_macos_mach_smi(int update_every, usec_t dt); |