mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Compute full network stats only when required
This commit is contained in:
parent
3d6d26422a
commit
2a62dfc24d
6 changed files with 29 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue