typo; fixes #3175
Costa Tsaousis (ktsaou) committed
Dec 25, 2017 at 13:52 UTC
198d038dcfa52572b88e5f303695c0e6ad557c81
2 files changed
+4
-4
src/freebsd_getmntinfo.c
+2
-2
@@ -122,7 +122,7 @@ static struct mount_point *get_mount_point(const char *name) {
122
int do_getmntinfo(int update_every, usec_t dt) {
123
(void)dt;
124
125
-#define DELAULT_EXLUDED_PATHS "/proc/*"
125
+#define DELAULT_EXCLUDED_PATHS "/proc/*"
126
// taken from gnulib/mountlist.c and shortened to FreeBSD related fstypes
127
#define DEFAULT_EXCLUDED_FILESYSTEMS "autofs procfs subfs devfs none"
128
#define CONFIG_SECTION_GETMNTINFO "plugin:freebsd:getmntinfo"
@@ -142,7 +142,7 @@ int do_getmntinfo(int update_every, usec_t dt) {
142
143
excluded_mountpoints = simple_pattern_create(
144
config_get(CONFIG_SECTION_GETMNTINFO, "exclude space metrics on paths",
145
- DELAULT_EXLUDED_PATHS)
145
+ DELAULT_EXCLUDED_PATHS)
146
, NULL
147
, SIMPLE_PATTERN_EXACT
148
);
src/plugin_proc_diskspace.c
+2
-2
@@ -1,6 +1,6 @@
1
#include "common.h"
2
3
-#define DELAULT_EXLUDED_PATHS "/proc/* /sys/* /var/run/user/* /run/user/* /snap/* /var/lib/docker/*"
3
+#define DELAULT_EXCLUDED_PATHS "/proc/* /sys/* /var/run/user/* /run/user/* /snap/* /var/lib/docker/*"
4
#define DEFAULT_EXCLUDED_FILESYSTEMS ""
5
#define CONFIG_SECTION_DISKSPACE "plugin:proc:diskspace"
6
@@ -96,7 +96,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
96
}
97
98
excluded_mountpoints = simple_pattern_create(
99
- config_get(CONFIG_SECTION_DISKSPACE, "exclude space metrics on paths", DELAULT_EXLUDED_PATHS)
99
+ config_get(CONFIG_SECTION_DISKSPACE, "exclude space metrics on paths", DELAULT_EXCLUDED_PATHS)
100
, NULL
101
, mode
102
);