#include "utils/common/common.h"
#if KERNEL_FREEBSD
-#include <sys/types.h>
#include <sys/sysctl.h>
+#include <sys/types.h>
#endif
#if KERNEL_LINUX
int cpufreq;
size_t cf_len = sizeof(cpufreq);
- if(sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) {
+ if (sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) {
WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib);
plugin_unregister_read("cpufreq");
}
int cpufreq;
size_t cf_len = sizeof(cpufreq);
- if(sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) {
+ if (sysctlbyname(mib, &cpufreq, &cf_len, NULL, 0) != 0) {
WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib);
return 0;
}