mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix mirrored traffic toast creation.
This commit is contained in:
parent
7773906f1f
commit
a3bc601628
1 changed files with 4 additions and 2 deletions
|
|
@ -349,10 +349,12 @@ function predicates.mirrored_traffic(toast, container)
|
|||
for _, traffic in pairs(ifstats.upload_stats) do
|
||||
upload_traffic = upload_traffic + traffic
|
||||
end
|
||||
|
||||
|
||||
local is_mirrored_traffic_pref = ntop.getPref(string.format("ntopng.prefs.ifid_%d.is_traffic_mirrored", interface.getId())) == "0"
|
||||
|
||||
if is_not_oem_and_administrator and not isEmptyString(message) and
|
||||
(num_tot_traffic_points > 10) and
|
||||
(upload_traffic == 0 and download_traffic > 0) then
|
||||
(upload_traffic == 0 and download_traffic > 0 and is_mirrored_traffic_pref) then
|
||||
table.insert(container, create_mirrored_traffic_toast(toast, message))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue