diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-08-21 16:06:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-08-21 16:06:08 +0200 |
commit | 58411110894c0a9e6a1a1ec9dbdf2fbe2ef3da00 (patch) | |
tree | 384477cd9a167103eedde5d0b0993cd1ac927092 /src/Makefile.am | |
parent | 3e6852f806c4368eda451b39f12b2ac2f2b5d33b (diff) | |
download | conntrack-tools-58411110894c0a9e6a1a1ec9dbdf2fbe2ef3da00.tar.gz conntrack-tools-58411110894c0a9e6a1a1ec9dbdf2fbe2ef3da00.zip |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 753c809..e969f4d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,7 +12,7 @@ conntrack_LDFLAGS = $(all_libraries) @LIBNETFILTER_CONNTRACK_LIBS@ conntrackd_SOURCES = alarm.c main.c run.c hash.c queue.c rbtree.c \ local.c log.c mcast.c udp.c netlink.c vector.c \ - filter.c fds.c event.c process.c origin.c \ + filter.c fds.c event.c process.c origin.c date.c \ cache.c cache_iterators.c \ cache_timer.c \ sync-mode.c sync-alarm.c sync-ftfw.c sync-notrack.c \ |