mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix traffic report incorrectly show in community
This commit is contained in:
parent
acffd2ea6f
commit
70da6923a5
4 changed files with 10 additions and 3 deletions
|
|
@ -656,6 +656,13 @@ function isScoreEnabled()
|
|||
return(ntop.isEnterprise())
|
||||
end
|
||||
|
||||
function hasTrafficReport()
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local is_pcap_dump = interface.isPcapDumpInterface()
|
||||
|
||||
return((not is_pcap_dump) and (ts_utils.getDriverName() == "rrd") and ntop.isEnterprise())
|
||||
end
|
||||
|
||||
function mustScanAlerts(ifstats)
|
||||
return areAlertsEnabled()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue