diff options
Diffstat (limited to 'collectors/diskspace.plugin/plugin_diskspace.c')
-rw-r--r-- | collectors/diskspace.plugin/plugin_diskspace.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/collectors/diskspace.plugin/plugin_diskspace.c b/collectors/diskspace.plugin/plugin_diskspace.c index 2153494d9a..7e742f9995 100644 --- a/collectors/diskspace.plugin/plugin_diskspace.c +++ b/collectors/diskspace.plugin/plugin_diskspace.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later -#include "../proc.plugin/plugin_proc.h" +#include "collectors/proc.plugin/plugin_proc.h" +#include "collectors/utils.h" #define PLUGIN_DISKSPACE_NAME "diskspace.plugin" @@ -626,9 +627,9 @@ void *diskspace_main(void *ptr) { cleanup_mount_points = config_get_boolean(CONFIG_SECTION_DISKSPACE, "remove charts of unmounted disks" , cleanup_mount_points); - int update_every = (int)config_get_number(CONFIG_SECTION_DISKSPACE, "update every", localhost->rrd_update_every); - if(update_every < localhost->rrd_update_every) - update_every = localhost->rrd_update_every; + int update_every = (int)config_get_number(CONFIG_SECTION_DISKSPACE, "update every", rrdb.localhost->update_every); + if(update_every < rrdb.localhost->update_every) + update_every = rrdb.localhost->update_every; check_for_new_mountpoints_every = (int)config_get_number(CONFIG_SECTION_DISKSPACE, "check for new mount points every", check_for_new_mountpoints_every); if(check_for_new_mountpoints_every < update_every) |