logswan

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

commit 8332142fb386406bdf09f16ef54b4a06295a7fbd
parent f762c741121a89c387071563b167e8f580bedb8f
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 14 Oct 2018 21:29:24 +0200

Revert back to using INT64_MAX for strtonum() maxval, as maxval is long long

Diffstat:
Msrc/logswan.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/logswan.c b/src/logswan.c @@ -267,7 +267,7 @@ main(int argc, char *argv[]) { /* Increment bandwidth usage */ if (parsedLine.objectSize) { - bandwidth = strtonum(parsedLine.objectSize, 0, UINT64_MAX, &errstr); + bandwidth = strtonum(parsedLine.objectSize, 0, INT64_MAX, &errstr); if (!errstr) { results.bandwidth += bandwidth;