mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
Score changes
- Move score from status definition to user scripts - Separate flow score counter from the peers score - Create a new HostScore class to hold the score data
This commit is contained in:
parent
38facb051a
commit
566b9ece0b
29 changed files with 162 additions and 126 deletions
|
|
@ -29,7 +29,8 @@ function script.hooks.all(now)
|
|||
if(flow.getPacketsRcvd() == 0) then
|
||||
-- Now check if the recipient isn't a broadcast/multicast address
|
||||
if(flow.isServerUnicast()) then
|
||||
flow.setStatus(flow_consts.status_types.status_udp_unidirectional.status_id)
|
||||
flow.setStatus(flow_consts.status_types.status_udp_unidirectional.status_id,
|
||||
50--[[ flow score]], 50--[[ cli score ]], 10--[[ srv score ]])
|
||||
end
|
||||
else
|
||||
flow.clearStatus(flow_consts.status_types.status_udp_unidirectional.status_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue