From 366dcda9e75a6fdf658dc807dc2925f36e62ff08 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 9 Jan 2013 19:02:50 +0400 Subject: [PATCH] Update required score according to default metric's action. --- src/dynamic_cfg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dynamic_cfg.c b/src/dynamic_cfg.c index 3979e8ddc..eacd262a8 100644 --- a/src/dynamic_cfg.c +++ b/src/dynamic_cfg.c @@ -135,6 +135,10 @@ apply_dynamic_conf (GList *conf_metrics, struct config_file *cfg) if (real_act->action == act->action) { real_act->score = act->value; } + /* Update required score accordingly to metric's action */ + if (act->action == real_metric->action) { + real_metric->required_score = act->value; + } tmp = g_list_next (tmp); } cur_elt = g_list_next (cur_elt); -- 2.39.5