diff options
Diffstat (limited to 'collectors/macos.plugin/macos_mach_smi.c')
-rw-r--r-- | collectors/macos.plugin/macos_mach_smi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/collectors/macos.plugin/macos_mach_smi.c b/collectors/macos.plugin/macos_mach_smi.c index 800b2ce56..973b90a20 100644 --- a/collectors/macos.plugin/macos_mach_smi.c +++ b/collectors/macos.plugin/macos_mach_smi.c @@ -55,7 +55,7 @@ int do_macos_mach_smi(int update_every, usec_t dt) { error("DISABLED: system.cpu"); } else { - st = rrdset_find_bytype_localhost("system", "cpu"); + st = rrdset_find_active_bytype_localhost("system", "cpu"); if (unlikely(!st)) { st = rrdset_create_localhost( "system" @@ -109,7 +109,7 @@ int do_macos_mach_smi(int update_every, usec_t dt) { error("DISABLED: mem.pgfaults"); } else { if (likely(do_ram)) { - st = rrdset_find_localhost("system.ram"); + st = rrdset_find_active_localhost("system.ram"); if (unlikely(!st)) { st = rrdset_create_localhost( "system" @@ -156,7 +156,7 @@ int do_macos_mach_smi(int update_every, usec_t dt) { // -------------------------------------------------------------------- if (likely(do_swapio)) { - st = rrdset_find_localhost("system.swapio"); + st = rrdset_find_active_localhost("system.swapio"); if (unlikely(!st)) { st = rrdset_create_localhost( "system" @@ -187,7 +187,7 @@ int do_macos_mach_smi(int update_every, usec_t dt) { // -------------------------------------------------------------------- if (likely(do_pgfaults)) { - st = rrdset_find_localhost("mem.pgfaults"); + st = rrdset_find_active_localhost("mem.pgfaults"); if (unlikely(!st)) { st = rrdset_create_localhost( "mem" |