From: Sexton, Rory Date: Fri, 24 Aug 2018 08:53:10 +0000 (+0100) Subject: Clang format X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a2e9463f42e3f18a3ef86ba2c975bb8fd71e1a50;p=collectd.git Clang format --- diff --git a/src/cpufreq.c b/src/cpufreq.c index 38a5fa80..18e79d44 100644 --- 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);