From: Vincent Brillault Date: Fri, 22 Aug 2014 22:42:49 +0000 (+0200) Subject: Turbostat: remove 'units' variable, only used once X-Git-Tag: collectd-5.5.0~24^2~72 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=64d6b501e5411a93751ffb9be6154a90389dd9e0;p=collectd.git Turbostat: remove 'units' variable, only used once --- diff --git a/src/turbostat.c b/src/turbostat.c index 5022c568..46f74a74 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -69,7 +69,6 @@ static unsigned int do_c8_c9_c10; static unsigned int do_slm_cstates; static unsigned int has_aperf; static unsigned int has_epb; -static unsigned int units = 1000000000; /* Ghz etc */ static unsigned int genuine_intel; static unsigned int has_invariant_tsc; static unsigned int do_nehalem_platform_info; @@ -831,7 +830,7 @@ submit_counters(struct thread_data *t, struct core_data *c, /* GHz */ if (has_aperf && ((!aperf_mperf_unstable) || (!(t->aperf > t->tsc || t->mperf > t->tsc)))) - turbostat_submit(NULL, "frequency", name, 1.0 * t->tsc / units * t->aperf / t->mperf / interval_float); + turbostat_submit(NULL, "frequency", name, 1.0 * t->tsc / 1000000000 * t->aperf / t->mperf / interval_float); /* SMI */ if (do_smi)