-- -- (C) 2019-26 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local page_utils = require("page_utils") local ebpf_utils = require "ebpf_utils" sendHTTPContentTypeHeader('text/html') page_utils.print_header_and_set_active_menu_entry(page_utils.menu_entries.flows) local page = _GET["page"] if isEmptyString(page) then page = "process_ndpi" end dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") local pid = _GET["pid"] local name_key = _GET["pid_name"] or "no name" local host_info = url2hostinfo(_GET) local ifstats = interface.getStats() local refresh_rate local have_nedge = ntop.isnEdge() if have_nedge then refresh_rate = 5 else refresh_rate = interface.getStatsUpdateFreq(ifstats["id"]) end if not pid or not name_key then print("