Compute full network stats only when required

This commit is contained in:
Alfredo Cardigliano 2025-05-13 17:47:26 +02:00
parent 3d6d26422a
commit 2a62dfc24d
6 changed files with 29 additions and 23 deletions

View file

@ -85,7 +85,7 @@ end
-- ########################################################
function ts_dump.subnet_update_rrds(when, ifstats, verbose)
local subnet_stats = interface.getNetworksStats()
local subnet_stats = interface.getNetworksStats(false, true)
for subnet, sstats in pairs(subnet_stats or {}) do
if ntop.isPro() and not isEmptyString(ntop.getPref("ntopng.prefs.intranet_traffic_rrd_creation") or "") then