From a2e9463f42e3f18a3ef86ba2c975bb8fd71e1a50 Mon Sep 17 00:00:00 2001 From: "Sexton, Rory" Date: Fri, 24 Aug 2018 09:53:10 +0100 Subject: [PATCH] Clang format --- src/cpufreq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.11.0