From 7f5a53998abfc9b199b713244fe8baf0a7c2b2fe Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 17 Jan 2009 18:03:53 +0100 Subject: cache: add objects statistics This patch adds the object counter to `conntrackd -s cache'. This is useful to detect object leaks in runtime. This patch also changes the layout of the output to fit the display in less than 24 lines (assuming 24x80 terminal). Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/cache.h') diff --git a/include/cache.h b/include/cache.h index 03b6822..697a64b 100644 --- a/include/cache.h +++ b/include/cache.h @@ -87,6 +87,8 @@ struct cache { uint32_t commit_fail; uint32_t flush; + + uint32_t objects; } stats; }; -- cgit v1.2.3