projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a78f607
)
hugepages plugin: Remove an unused variable.
author
Florian Forster
<octo@collectd.org>
Tue, 13 Sep 2016 05:25:54 +0000
(07:25 +0200)
committer
Florian Forster
<octo@collectd.org>
Wed, 14 Sep 2016 18:38:52 +0000
(20:38 +0200)
src/hugepages.c
patch
|
blob
|
history
diff --git
a/src/hugepages.c
b/src/hugepages.c
index
957eedb
..
8a2ad6a
100644
(file)
--- a/
src/hugepages.c
+++ b/
src/hugepages.c
@@
-121,7
+121,6
@@
static void submit_hp(const struct entry_info *info) {
static int read_hugepage_entry(const char *path, const char *entry,
void *e_info) {
char path2[PATH_MAX];
- char type_instance[PATH_MAX];
struct entry_info *info = e_info;
double value;
@@
-155,8
+154,6
@@
static int read_hugepage_entry(const char *path, const char *entry,
return 0;
}
- ssnprintf(type_instance, sizeof(type_instance), "free_used-%zukB",
- info->page_size_kb);
submit_hp(info);
/* Reset flags so subsequent calls don't submit again. */