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);
}
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);