diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-14 19:03:43 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-14 19:03:43 +0300 |
commit | 9f300615e8fca8076266de1a220c74a226d09979 (patch) | |
tree | fdc9f00222cb59f72a39c67431e06f958fea89be /src/util.c | |
parent | 2293622f1de6455d1356abdc5ff7187815c184ec (diff) | |
download | rspamd-9f300615e8fca8076266de1a220c74a226d09979.tar.gz rspamd-9f300615e8fca8076266de1a220c74a226d09979.zip |
* 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
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |