From 1d61eaac3f33ba5e72b6bd431bfda2595a00a591 Mon Sep 17 00:00:00 2001 From: pudelkoM Date: Sat, 22 Jul 2017 13:38:11 +0200 Subject: [PATCH] Start with smaller pcap file size Fixes #18. Improves performance a bit (#16) --- flowscope.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/flowscope.lua b/flowscope.lua index 2a52ff9..614ec7b 100644 --- a/flowscope.lua +++ b/flowscope.lua @@ -305,6 +305,7 @@ end function continuousDumper(args, qq, id, path, filterPipe) log:setLevel(args.logLevel) + pcap:setInitialFilesize(2^21) -- 2 MiB local ruleSet = {} -- Used to maintain the rules local ruleList = {} -- Build from the ruleSet for performance local maxRules = args.maxRules