From 58411110894c0a9e6a1a1ec9dbdf2fbe2ef3da00 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 21 Aug 2009 16:06:08 +0200 Subject: conntrackd: reduce the number of gettimeofday() syscalls This patch reduces the number of gettimeofday syscalls by caching the current time in a variable at the beginning of the main loop. Based on a suggestion from Vincent Jardin. Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/cache.h') diff --git a/include/cache.h b/include/cache.h index 7e61085..28917f2 100644 --- a/include/cache.h +++ b/include/cache.h @@ -4,6 +4,7 @@ #include #include #include "hash.h" +#include "date.h" /* cache features */ enum { -- cgit v1.2.3