projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improves test and cleanup.
[apps/pfixtools.git]
/
postlicyd
/
tst-rbl.c
diff --git
a/postlicyd/tst-rbl.c
b/postlicyd/tst-rbl.c
index
8ba5e12
..
30d6533
100644
(file)
--- a/
postlicyd/tst-rbl.c
+++ b/
postlicyd/tst-rbl.c
@@
-48,10
+48,10
@@
int main(int argc, char *argv[])
rbldb_stats(db) * 4);
time_t now = time(NULL);
rbldb_stats(db) * 4);
time_t now = time(NULL);
- for (uint32_t i = 0 ; i < 100000000 ; ++i) {
+ for (uint32_t i = 0 ; i < 100000000
0
; ++i) {
rbldb_ipv4_lookup(db, (88 << 24) | (170 << 16) | (239 << 8) | (132));
}
rbldb_ipv4_lookup(db, (88 << 24) | (170 << 16) | (239 << 8) | (132));
}
- printf("%ld request per second\n", 100000000 / (time(NULL) - now));
+ printf("%ld request per second\n", 100000000
0
/ (time(NULL) - now));
rbldb_delete(&db);
}
return 0;
rbldb_delete(&db);
}
return 0;