aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-28 12:27:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-28 12:27:52 +0000
commit31ff56946ced9e8f7c2475422c1a5185417cb32b (patch)
tree1668675365aca30d98df4615f2631867ca7c64ea /src/libserver/symbols_cache.c
parent944588e26acadaaf7d68fd4798142e8a754fa9d3 (diff)
downloadrspamd-31ff56946ced9e8f7c2475422c1a5185417cb32b.tar.gz
rspamd-31ff56946ced9e8f7c2475422c1a5185417cb32b.zip
[Minor] Improve counters output
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index 5c53a0e08..557347899 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -2086,6 +2086,7 @@ gboolean
rspamd_symbols_cache_stat_symbol (struct symbols_cache *cache,
const gchar *name,
gdouble *frequency,
+ gdouble *freq_stddev,
gdouble *tm)
{
struct cache_item *item;
@@ -2099,7 +2100,8 @@ rspamd_symbols_cache_stat_symbol (struct symbols_cache *cache,
item = g_hash_table_lookup (cache->items_by_symbol, name);
if (item != NULL) {
- *frequency = item->st->frequency_counter.mean;
+ *frequency = item->st->avg_frequency;
+ *freq_stddev = item->st->stddev_frequency;
*tm = item->st->time_counter.mean;
return TRUE;