projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8b039e3
)
formatting fixes
author
Pablo Llopis
<pablo.llopis@cern.ch>
Fri, 15 Dec 2017 14:58:22 +0000
(15:58 +0100)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sat, 27 Oct 2018 13:21:25 +0000
(20:21 +0700)
src/turbostat.c
patch
|
blob
|
history
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
31d458d
..
f5d3b35
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-1478,8
+1478,8
@@
static int turbostat_read(void) {
* get_counters. If the call is unsuccessfull, this will be handled later
* on by restoring affinity to cpu_present_set instead.
*/
* get_counters. If the call is unsuccessfull, this will be handled later
* on by restoring affinity to cpu_present_set instead.
*/
- sched_getaffinity_ret =
sched_getaffinity(0, cpu_saved_affinity_setsize,
-
cpu_saved_affinity_set);
+ sched_getaffinity_ret =
+
sched_getaffinity(0, cpu_saved_affinity_setsize,
cpu_saved_affinity_set);
if (!initialized) {
if ((ret = for_all_cpus(get_counters, EVEN_COUNTERS)) < 0)
if (!initialized) {
if ((ret = for_all_cpus(get_counters, EVEN_COUNTERS)) < 0)
@@
-1519,7
+1519,7
@@
out:
* This might fail if the number of CPU changed, but we can't do anything in
* that case..
*/
* This might fail if the number of CPU changed, but we can't do anything in
* that case..
*/
- if (sched_getaffinity_ret == 0)
+ if (sched_getaffinity_ret == 0)
(void)sched_setaffinity(0, cpu_saved_affinity_setsize,
cpu_saved_affinity_set);
else {
(void)sched_setaffinity(0, cpu_saved_affinity_setsize,
cpu_saved_affinity_set);
else {