From 9de87ff1c675f7ae5f463c4820bffb502e7ce852 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 1 Aug 2008 17:52:54 +0200 Subject: ftfw: show consistent information to users for problem diagnosing This patch hides information that may confuse users while they are diagnosing problems in their setup. For example, we hide entries that are schedule to expire - from the user side, they are already destroyed entries; and we show in the counters the real active entries, not all that are stored in the caches. Signed-off-by: Pablo Neira Ayuso --- src/cache_lifetime.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/cache_lifetime.c') diff --git a/src/cache_lifetime.c b/src/cache_lifetime.c index cf84d20..ad3416a 100644 --- a/src/cache_lifetime.c +++ b/src/cache_lifetime.c @@ -53,13 +53,7 @@ static int lifetime_dump(struct us_conntrack *u, gettimeofday(&tv, NULL); - if (alarm_pending(&u->alarm)) - return sprintf(buf, " [active since %lds] [expires in %lds]", - tv.tv_sec - *lifetime, - u->alarm.tv.tv_sec - tv.tv_sec); - else - return sprintf(buf, " [active since %lds]", - tv.tv_sec - *lifetime); + return sprintf(buf, " [active since %lds]", tv.tv_sec - *lifetime); } struct cache_feature lifetime_feature = { -- cgit v1.2.3