From a8220ab2d293bb7f4b014b79d16b2fb05090fa93 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Feb 2021 12:45:55 +0100 Subject: Adding upstream version 1.29.0. Signed-off-by: Daniel Baumann --- collectors/macos.plugin/macos_mach_smi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'collectors/macos.plugin/macos_mach_smi.c') 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" -- cgit v1.2.3