Adds sortable Score column to flows list

This commit is contained in:
Simone Mainardi 2020-01-16 17:09:46 +01:00
parent e1dd9f9c5c
commit 38facb051a
7 changed files with 47 additions and 5 deletions

View file

@ -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>")