From: Florent Bruneau Date: Sun, 5 Oct 2008 09:00:13 +0000 (+0200) Subject: Fix stats of tests. X-Git-Url: http://git.madism.org/?p=apps%2Fpfixtools.git;a=commitdiff_plain;h=944e5baada4d41b5aa63a1247485435df9433f36 Fix stats of tests. Signed-off-by: Florent Bruneau --- 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) {