summaryrefslogtreecommitdiffstats
path: root/src/stats-mode.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-25 17:53:02 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-25 17:53:02 +0100
commit1c9faf8c218bc7ff4617557383e4116f1adb11e5 (patch)
treef189019456f3399d3a47d3471f406956381c65b7 /src/stats-mode.c
parenteec8fdf57f34fe0d80b884ad0e376ed24c63ffcc (diff)
cache: move lifetime feature to main cache code
The lifetime feature is used by all working modes, it is useful to know how long it has been an entry living in the cache. This patch moves the lifetime feature to the main caching code. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r--src/stats-mode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c
index b742c0c..226a6b8 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -37,9 +37,7 @@ static int init_stats(void)
}
memset(state.stats, 0, sizeof(struct ct_stats_state));
- STATE_STATS(cache) = cache_create("stats",
- LIFETIME,
- NULL);
+ STATE_STATS(cache) = cache_create("stats", NO_FEATURES, NULL);
if (!STATE_STATS(cache)) {
dlog(LOG_ERR, "can't allocate memory for the "
"external cache");