projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
784b4fe
)
Changes after applying contrib/format.sh
author
Marco van Tol
<marco@tols.org>
Tue, 23 Apr 2019 21:27:57 +0000
(23:27 +0200)
committer
Marco van Tol
<marco@tols.org>
Tue, 23 Apr 2019 21:27:57 +0000
(23:27 +0200)
src/cpufreq.c
patch
|
blob
|
history
diff --git
a/src/cpufreq.c
b/src/cpufreq.c
index
ee5492c
..
f95b282
100644
(file)
--- a/
src/cpufreq.c
+++ b/
src/cpufreq.c
@@
-26,8
+26,8
@@
#include "utils/common/common.h"
#if KERNEL_FREEBSD
#include "utils/common/common.h"
#if KERNEL_FREEBSD
-#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/sysctl.h>
+#include <sys/types.h>
#endif
#if KERNEL_LINUX
#endif
#if KERNEL_LINUX
@@
-109,7
+109,7
@@
static int cpufreq_init(void) {
int cpufreq;
size_t cf_len = sizeof(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);
plugin_unregister_read("cpufreq");
}
WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib);
plugin_unregister_read("cpufreq");
}
@@
-233,7
+233,7
@@
static int cpufreq_read(void) {
int cpufreq;
size_t cf_len = sizeof(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;
}
WARNING("cpufreq plugin: sysctl \"%s\" failed.", mib);
return 0;
}