aboutsummaryrefslogtreecommitdiffstats
path: root/src/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-15 12:40:36 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-15 12:40:36 +0400
commit28fa4348d407ab8c9290f90fc1bbb16e60ae50ba (patch)
treecf380cb2b930e85e85f47ce552ee37fa88f98621 /src/symbols_cache.c
parent8ca876457eb732d97251fb5781fac1ad79c9a12b (diff)
downloadrspamd-28fa4348d407ab8c9290f90fc1bbb16e60ae50ba.tar.gz
rspamd-28fa4348d407ab8c9290f90fc1bbb16e60ae50ba.zip
* Add -C flag to dump cache content
* Fix sorting logic
Diffstat (limited to 'src/symbols_cache.c')
-rw-r--r--src/symbols_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbols_cache.c b/src/symbols_cache.c
index e99e9eb7f..a3ab5edfd 100644
--- a/src/symbols_cache.c
+++ b/src/symbols_cache.c
@@ -63,7 +63,7 @@ cache_logic_cmp (const void *p1, const void *p2)
i2->s->frequency * FREQUENCY_MULT +
i2->s->avg_time * TIME_MULT;
- return (int)w1 - w2;
+ return (int)w2 - w1;
}
static void