X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fturbostat.c;h=f5d3b35e296a4892edf78275a72c97ebfb0f436c;hb=e986dde71cbf0a1ab7daac6e2326365bb7d4a299;hp=31d458db9481652e532a04f287b6c5944b4ed29a;hpb=8b039e3d6d460b149630044973514677c9f17475;p=collectd.git diff --git a/src/turbostat.c b/src/turbostat.c index 31d458db..f5d3b35e 100644 --- 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. */ - 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) @@ -1519,7 +1519,7 @@ out: * 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 {