From dc055d8a9eb84f62eddb4ac4a9631f80aa658085 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Jun 2010 16:54:28 +0400 Subject: [PATCH] * Incorrectly removed in previous commit --- src/filter.c | 1 + src/plugins/chartable.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/filter.c b/src/filter.c index 809d4b326..b2c4b7ab5 100644 --- a/src/filter.c +++ b/src/filter.c @@ -60,6 +60,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const cha memory_pool_add_destructor (task->task_pool, (pool_destruct_func) g_hash_table_destroy, metric_res->symbols); metric_res->metric = metric; metric_res->grow_factor = 0; + metric_res->score = 0; g_hash_table_insert (task->results, (gpointer) metric->name, metric_res); } diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 347fa5cab..e5b5893fb 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -75,6 +75,12 @@ chartable_module_config (struct config_file *cfg) char *value; int res = TRUE; + if ((value = get_module_opt (cfg, "chartable", "symbol")) != NULL) { + chartable_module_ctx->symbol = memory_pool_strdup (chartable_module_ctx->chartable_pool, value); + } + else { + chartable_module_ctx->symbol = DEFAULT_SYMBOL; + } if ((value = get_module_opt (cfg, "chartable", "threshold")) != NULL) { errno = 0; chartable_module_ctx->threshold = strtod (value, NULL); -- 2.39.5