logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit f98728f184a73a6104bff2966a927703e2ef9558
parent 1a8c16e1f20ba5b41dd46d58a0130adf68503ce9
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Fri,  4 Dec 2015 00:07:45 +0100

Use a constant to define HyperLogLog precision

Diffstat:
Msrc/logswan.c | 4++--
Msrc/logswan.h | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/logswan.c b/src/logswan.c @@ -73,8 +73,8 @@ void displayUsage() { int main (int argc, char *argv[]) { char *intputFile; - hll_init(&uniqueIPv4, 20); - hll_init(&uniqueIPv6, 20); + hll_init(&uniqueIPv4, HLL_BITS); + hll_init(&uniqueIPv6, HLL_BITS); while ((getoptFlag = getopt(argc, argv, "hv")) != -1) { switch(getoptFlag) { diff --git a/src/logswan.h b/src/logswan.h @@ -16,6 +16,7 @@ #define VERSION "Logswan 1.02" +#define HLL_BITS 20 #define LINE_MAX_LENGTH 65536 #define STATUS_CODE_MAX 512