diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-18 18:28:31 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-22 01:00:23 +0200 |
commit | bf06c2fb046ad56eafecccff26c05d8d24c53dfc (patch) | |
tree | 622198590f320e27a68cf16235a377eacd4b731b /src/plugin_macos.c | |
parent | c35f24c5b566a25f62a140b58fc8f930a0e2f12a (diff) |
each host can have its own settings for history, update_every, rrd memory mode, health enabled
Diffstat (limited to 'src/plugin_macos.c')
-rw-r--r-- | src/plugin_macos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugin_macos.c b/src/plugin_macos.c index 54965c5d4e..4e84a084d6 100644 --- a/src/plugin_macos.c +++ b/src/plugin_macos.c @@ -22,7 +22,7 @@ void *macos_main(void *ptr) { unsigned long long sutime_macos_mach_smi = 0ULL; unsigned long long sutime_macos_iokit = 0ULL; - usec_t step = rrd_update_every * USEC_PER_SEC; + usec_t step = localhost->rrd_update_every * USEC_PER_SEC; heartbeat_t hb; heartbeat_init(&hb); for(;;) { @@ -34,19 +34,19 @@ void *macos_main(void *ptr) { if(!vdo_macos_sysctl) { debug(D_PROCNETDEV_LOOP, "MACOS: calling do_macos_sysctl()."); - vdo_macos_sysctl = do_macos_sysctl(rrd_update_every, hb_dt); + vdo_macos_sysctl = do_macos_sysctl(localhost->rrd_update_every, hb_dt); } if(unlikely(netdata_exit)) break; if(!vdo_macos_mach_smi) { debug(D_PROCNETDEV_LOOP, "MACOS: calling do_macos_mach_smi()."); - vdo_macos_mach_smi = do_macos_mach_smi(rrd_update_every, hb_dt); + vdo_macos_mach_smi = do_macos_mach_smi(localhost->rrd_update_every, hb_dt); } if(unlikely(netdata_exit)) break; if(!vdo_macos_iokit) { debug(D_PROCNETDEV_LOOP, "MACOS: calling do_macos_iokit()."); - vdo_macos_iokit = do_macos_iokit(rrd_update_every, hb_dt); + vdo_macos_iokit = do_macos_iokit(localhost->rrd_update_every, hb_dt); } if(unlikely(netdata_exit)) break; |