diff options
Diffstat (limited to 'collectors/proc.plugin/proc_stat.c')
-rw-r--r-- | collectors/proc.plugin/proc_stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/proc.plugin/proc_stat.c b/collectors/proc.plugin/proc_stat.c index a4f76796b6..20a18d221a 100644 --- a/collectors/proc.plugin/proc_stat.c +++ b/collectors/proc.plugin/proc_stat.c @@ -719,7 +719,7 @@ int do_proc_stat(int update_every, usec_t dt) { } if(unlikely(core == 0 && cpus_var == NULL)) - cpus_var = rrdvar_custom_host_variable_add_and_acquire(localhost, "active_processors"); + cpus_var = rrdvar_custom_host_variable_add_and_acquire(rrdb.localhost, "active_processors"); } rrddim_set_by_pointer(cpu_chart->st, cpu_chart->rd_user, user); @@ -1064,7 +1064,7 @@ int do_proc_stat(int update_every, usec_t dt) { } if(cpus_var) - rrdvar_custom_host_variable_set(localhost, cpus_var, cores_found); + rrdvar_custom_host_variable_set(rrdb.localhost, cpus_var, cores_found); return 0; } |