Clang format
authorSexton, Rory <rory.sexton@intel.com>
Fri, 24 Aug 2018 08:53:10 +0000 (09:53 +0100)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 22 Oct 2018 01:46:01 +0000 (08:46 +0700)
src/cpufreq.c

index 38a5fa8..18e79d4 100644 (file)
@@ -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);