projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b34f34
)
Clang format
author
Sexton, Rory
<rory.sexton@intel.com>
Fri, 24 Aug 2018 08:53:10 +0000
(09:53 +0100)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Mon, 22 Oct 2018 01:46:01 +0000
(08:46 +0700)
src/cpufreq.c
patch
|
blob
|
history
diff --git
a/src/cpufreq.c
b/src/cpufreq.c
index
38a5fa8
..
18e79d4
100644
(file)
--- a/
src/cpufreq.c
+++ b/
src/cpufreq.c
@@
-181,13
+181,14
@@
static int cpufreq_read(void) {
}
cdtime_t now = cdtime();
gauge_t g;
- if (j < MAX_AVAIL_FREQS) {
- if (value_to_rate(&g, v, DS_TYPE_DERIVE, now, &t_data[i].time_state[j]) != 0 ){
+ if (j < MAX_AVAIL_FREQS) {
+ if (value_to_rate(&g, v, DS_TYPE_DERIVE, now,
+ &t_data[i].time_state[j]) != 0) {
continue;
j++;
}
cpufreq_submit(i, "percent", state, &(value_t){.gauge = g});
- }
+
}
j++;
}
fclose(fh);