projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run clang-format after removing ssnprintf
[collectd.git]
/
src
/
turbostat.c
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
73a6769
..
1049fb2
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-567,9
+567,9
@@
static int submit_counters(struct thread_data *t, struct core_data *c,
1.0 / 1000000 * t->aperf / interval_float);
if ((!aperf_mperf_unstable) || (!(t->aperf > t->tsc || t->mperf > t->tsc)))
1.0 / 1000000 * t->aperf / interval_float);
if ((!aperf_mperf_unstable) || (!(t->aperf > t->tsc || t->mperf > t->tsc)))
- turbostat_submit(name, "frequency", "busy",
1.0 * t->tsc / 1000000 *
-
t->aperf / t->mperf /
-
interval_float);
+ turbostat_submit(name, "frequency", "busy",
+
1.0 * t->tsc / 1000000 *
t->aperf / t->mperf /
+ interval_float);
/* Sanity check (should stay stable) */
turbostat_submit(name, "gauge", "TSC",
/* Sanity check (should stay stable) */
turbostat_submit(name, "gauge", "TSC",
@@
-1065,7
+1065,7
@@
static int get_threads_on_core(unsigned int cpu) {
char character;
snprintf(path, sizeof(path),
char character;
snprintf(path, sizeof(path),
-
"/sys/devices/system/cpu/cpu%d/topology/thread_siblings_list", cpu);
+ "/sys/devices/system/cpu/cpu%d/topology/thread_siblings_list", cpu);
filep = fopen(path, "r");
if (!filep) {
ERROR("turbostat plugin: Failed to open '%s'", path);
filep = fopen(path, "r");
if (!filep) {
ERROR("turbostat plugin: Failed to open '%s'", path);