projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turbostat: don't hide the actual size of the buffer in some define
[collectd.git]
/
src
/
turbostat.c
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
17fe005
..
55d1179
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-804,11
+804,10
@@
turbostat_submit (const char *plugin_instance,
* Perf Status percentage: %5.2
* "CTMP" 4 columns %4d
*/
* Perf Status percentage: %5.2
* "CTMP" 4 columns %4d
*/
-#define NAME_LEN 12
static int
submit_counters(struct thread_data *t, struct core_data *c, struct pkg_data *p)
{
static int
submit_counters(struct thread_data *t, struct core_data *c, struct pkg_data *p)
{
- char name[
NAME_LEN
];
+ char name[
12
];
double interval_float;
interval_float = tv_delta.tv_sec + tv_delta.tv_usec/1000000.0;
double interval_float;
interval_float = tv_delta.tv_sec + tv_delta.tv_usec/1000000.0;