X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fapps_plugin.c;h=d2ac2bd95a5f12ac65d0f6b1ca947ba8e01320e4;hb=6699ea8c3cffb87df3c241d84b8f7b7eb873f700;hp=82b77df655ff5a945c1b5e327f80adfd9fb24b97;hpb=ce381953ca239d092b3085ee29798a4908f32747;p=netdata.git diff --git a/src/apps_plugin.c b/src/apps_plugin.c index 82b77df6..d2ac2bd9 100644 --- a/src/apps_plugin.c +++ b/src/apps_plugin.c @@ -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;