]> arthur.barton.de Git - netdata.git/blobdiff - src/apps_plugin.c
Merge pull request #1912 from vlvkobal/master
[netdata.git] / src / apps_plugin.c
index bea06c3c84030d07cf2c2260bb6ca2c4df678d10..83694c9f0fce3f996bc983840ab7b923ce836fc1 100644 (file)
@@ -1162,7 +1162,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;