From 944e5baada4d41b5aa63a1247485435df9433f36 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 5 Oct 2008 11:00:13 +0200 Subject: [PATCH] Fix stats of tests. Signed-off-by: Florent Bruneau --- common/tst-trie.c | 2 +- postlicyd/tst-rbl.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/tst-trie.c b/common/tst-trie.c index c9e16dc..9f69b1e 100644 --- a/common/tst-trie.c +++ b/common/tst-trie.c @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) */ if (argc > 1) { trie = create_trie_from_file(argv[1]); - trie_inspect(trie, true); + trie_inspect(trie, false); trie_delete(&trie); } return 0; diff --git a/postlicyd/tst-rbl.c b/postlicyd/tst-rbl.c index 30d6533..7e567b1 100644 --- a/postlicyd/tst-rbl.c +++ b/postlicyd/tst-rbl.c @@ -39,13 +39,14 @@ #include "common.h" #include "rbl.h" +#include "array.h" int main(int argc, char *argv[]) { if (argc > 1) { rbldb_t *db = rbldb_create(argv[1], false); printf("loaded: %s, %d ips, %d o\n", argv[1], rbldb_stats(db), - rbldb_stats(db) * 4); + rbldb_stats(db) * 1 + 65536 * sizeof(A(uint16_t))); time_t now = time(NULL); for (uint32_t i = 0 ; i < 1000000000 ; ++i) { -- 2.20.1