]> arthur.barton.de Git - netdata.git/blobdiff - src/apps_plugin.c
Rename config sections for modules
[netdata.git] / src / apps_plugin.c
index 89aea6ce7af077b36eeda4dba28c64dec99fad27..d2ac2bd95a5f12ac65d0f6b1ca947ba8e01320e4 100644 (file)
@@ -1159,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;