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/profile.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/profile.plugin')
-rw-r--r-- | collectors/profile.plugin/plugin_profile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/profile.plugin/plugin_profile.cc b/collectors/profile.plugin/plugin_profile.cc index 428720e7b9..5f7b22d257 100644 --- a/collectors/profile.plugin/plugin_profile.cc +++ b/collectors/profile.plugin/plugin_profile.cc @@ -195,8 +195,8 @@ extern "C" void *profile_main(void *ptr) { netdata_thread_cleanup_push(profile_main_cleanup, ptr); int UpdateEvery = (int) config_get_number(CONFIG_SECTION_PROFILE, "update every", 1); - if (UpdateEvery < rrdb.localhost->update_every) - UpdateEvery = rrdb.localhost->update_every; + if (UpdateEvery < localhost->rrd_update_every) + UpdateEvery = localhost->rrd_update_every; // pick low-default values, in case this plugin is ever enabled accidentaly. size_t NumThreads = config_get_number(CONFIG_SECTION_PROFILE, "number of threads", 2); |