]> arthur.barton.de Git - netdata.git/blobdiff - src/apps_plugin.c
Rename config sections for modules
[netdata.git] / src / apps_plugin.c
index 82b77df655ff5a945c1b5e327f80adfd9fb24b97..d2ac2bd95a5f12ac65d0f6b1ca947ba8e01320e4 100644 (file)
@@ -61,7 +61,11 @@ static int
         debug = 0,
         update_every = 1,
         enable_guest_charts = 0,
+#ifdef __FreeBSD__
+        enable_file_charts = 0,
+#else
         enable_file_charts = 1,
+#endif
         enable_users_charts = 1,
         enable_groups_charts = 1,
         include_exited_childs = 1;
@@ -1155,7 +1159,7 @@ static inline int read_proc_stat() {
         error("FREEBSD: There are %d CPU states (5 was expected)", CPUSTATES);
         goto cleanup;
     }
-    if (unlikely(GETSYSCTL("kern.cp_time", cp_time))) goto cleanup;
+    if (unlikely(GETSYSCTL_BY_NAME("kern.cp_time", cp_time))) goto cleanup;
 #else
     static char filename[FILENAME_MAX + 1] = "";
     static procfile *ff = NULL;