summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/plugin_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/proc.plugin/plugin_proc.c')
-rw-r--r--collectors/proc.plugin/plugin_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/proc.plugin/plugin_proc.c b/collectors/proc.plugin/plugin_proc.c
index 74e3129370..019733cbca 100644
--- a/collectors/proc.plugin/plugin_proc.c
+++ b/collectors/proc.plugin/plugin_proc.c
@@ -161,7 +161,7 @@ void *proc_main(void *ptr)
worker_register_job_name(i, proc_modules[i].dim);
}
- usec_t step = localhost->rrd_update_every * USEC_PER_SEC;
+ usec_t step = rrdb.localhost->update_every * USEC_PER_SEC;
heartbeat_t hb;
heartbeat_init(&hb);
@@ -185,7 +185,7 @@ void *proc_main(void *ptr)
netdata_log_debug(D_PROCNETDEV_LOOP, "PROC calling %s.", pm->name);
worker_is_busy(i);
- pm->enabled = !pm->func(localhost->rrd_update_every, hb_dt);
+ pm->enabled = !pm->func(rrdb.localhost->update_every, hb_dt);
}
}