diff options
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r-- | src/libserver/symbols_cache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 8df440d1c..0728d0ee6 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -2136,10 +2136,8 @@ rspamd_symbols_cache_find_symbol (struct symbols_cache *cache, const gchar *name gboolean rspamd_symbols_cache_stat_symbol (struct symbols_cache *cache, - const gchar *name, - gdouble *frequency, - gdouble *freq_stddev, - gdouble *tm) + const gchar *name, gdouble *frequency, gdouble *freq_stddev, + gdouble *tm, guint *nhits) { struct cache_item *item; @@ -2156,6 +2154,10 @@ rspamd_symbols_cache_stat_symbol (struct symbols_cache *cache, *freq_stddev = sqrt (item->st->stddev_frequency); *tm = item->st->time_counter.mean; + if (nhits) { + *nhits = item->st->hits; + } + return TRUE; } |