mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Adds sortable Score column to flows list
This commit is contained in:
parent
e1dd9f9c5c
commit
38facb051a
7 changed files with 47 additions and 5 deletions
|
|
@ -47,6 +47,10 @@ else
|
|||
print ("\", \"column_thpt\" : \"0 "..throughput_type.." \"")
|
||||
end
|
||||
|
||||
if isScoreEnabled() then
|
||||
print(", \"column_score\" : \""..formatValue(flow["score"]).."\"")
|
||||
end
|
||||
|
||||
cli2srv = round((flow["cli2srv.bytes"] * 100) / flow["bytes"], 0)
|
||||
print (", \"column_breakdown\" : \"<div class='progress'><div class='progress-bar bg-warning' style='width: " .. cli2srv .."%;'>Client</div><div class='progress-bar bg-info' style='width: " .. (100-cli2srv) .. "%;'>Server</div></div>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue