From 9f300615e8fca8076266de1a220c74a226d09979 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Dec 2009 19:03:43 +0300 Subject: * Fix symbols cache (init lua filters before symbols cache initialization) * Remove LRU expiration logic from statfiles and replace it with random/lowerest value expiration logic: expire random block or block with lowerest value ! statfiles are incompatible again --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 000aeb43e..b3e4f7e68 100644 --- a/src/util.c +++ b/src/util.c @@ -954,8 +954,8 @@ calculate_check_time (struct timespec *begin, int resolution) diff = (ts.tv_sec - begin->tv_sec) * 1000. + /* Seconds */ (ts.tv_nsec - begin->tv_nsec) / 1000000.; /* Nanoseconds */ - rspamd_sprintf (fmt, "%%.%df", resolution); - rspamd_snprintf (res, sizeof (res), fmt, diff); + sprintf (fmt, "%%.%df", resolution); + snprintf (res, sizeof (res), fmt, diff); return (const char *)res; } -- cgit v1.2.3