From 374eebdccfd7e9a1943041dd8ab68ecb60fff8a2 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Mon, 15 Jul 2019 12:23:34 +0200 Subject: [PATCH] Hiding traffic report when analysing pcap dump --- scripts/lua/host_details.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lua/host_details.lua b/scripts/lua/host_details.lua index 58b727d8ba..4f3af220ce 100644 --- a/scripts/lua/host_details.lua +++ b/scripts/lua/host_details.lua @@ -55,6 +55,8 @@ local ifstats = interface.getStats() ifId = ifstats.id +local is_pcap_dump = interface.isPcapDumpInterface() + local host = nil local family = nil @@ -417,7 +419,7 @@ if((page == "historical") or ts_utils.exists("host:traffic", {ifid=ifId, host=ts end end -if not only_historical then +if not only_historical and not is_pcap_dump then if host["localhost"] and ts_utils.getDriverName() == "rrd" then if ntop.isEnterprise() or ntop.isnEdge() then if(page == "traffic_report") then