]> source.dussan.org Git - rspamd.git/commitdiff
* Fix order
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 27 May 2010 15:19:00 +0000 (19:19 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 27 May 2010 15:19:00 +0000 (19:19 +0400)
src/classifiers/winnow.c

index 78e05d43b531a5a0a79b29a55693e108ba731d6c..6c64cdc4b539595da080f432d222440ccdb9a7fd 100644 (file)
@@ -244,15 +244,15 @@ winnow_classify (struct classifier_ctx *ctx, statfile_pool_t * pool, GTree * inp
        }
 
        if (sel != NULL) {
-               sumbuf = memory_pool_alloc (task->task_pool, 32);
-               snprintf (sumbuf, 32, "%.2Lg", max);
-               cur = g_list_prepend (NULL, sumbuf);
 #ifdef WITH_LUA
         max = call_classifier_post_callbacks (ctx->cfg, task, max);
 #endif
                if (st->normalizer != NULL) {
                        max = st->normalizer (task->cfg, max, st->normalizer_data);
                }
+               sumbuf = memory_pool_alloc (task->task_pool, 32);
+               snprintf (sumbuf, 32, "%.2Lg", max);
+               cur = g_list_prepend (NULL, sumbuf);
                insert_result (task, ctx->cfg->metric, sel->symbol, max, cur);
        }
 }