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;
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;