X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=decc77fc74f407b901ac13b59e18afe32da308e5;hp=996b71fac99257758e2a5d8cad9d6c018cf1ba06;hb=c252837b853b35f06fffe637b2a6bf16419da954;hpb=cb6d1dfb9e4067229a4bbde0abd05784d97ef14b diff --git a/mood.c b/mood.c index 996b71fa..decc77fc 100644 --- a/mood.c +++ b/mood.c @@ -273,10 +273,8 @@ static int compute_mood_score(const void *row, long *result) /* reject if there is no matching entry in the accept list */ if (!match && !list_empty(¤t_mood->accept_list)) return -E_NOT_ADMISSIBLE; - list_for_each_entry(item, ¤t_mood->score_list, mood_item_node) { - PARA_INFO_LOG("random: %d\n", para_random(100)); + list_for_each_entry(item, ¤t_mood->score_list, mood_item_node) add_item_score(row, item, &score, &score_arg_sum); - } if (score_arg_sum) score /= score_arg_sum; *result = score;