-- -- (C) 2013-18 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local page_utils = require("page_utils") sendHTTPContentTypeHeader('text/html') page_utils.print_header(i18n("tree_map.hosts_treemap")) active_page = "hosts" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") interface.select(ifname) local hosts_stats = interface.getHostsInfo() local num = hosts_stats["numHosts"] hosts_stats = hosts_stats["hosts"] if(num > 0) then print [[

]] print(i18n("tree_map.hosts_treemap")) print[[

 
]] else print("
" .. i18n("no_results_found") .. "
") end dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")