Bootstrap migration progress bars

This commit is contained in:
Simone Mainardi 2019-11-28 15:32:18 +01:00
parent 14db3bb11f
commit 2639d49e4a
23 changed files with 72 additions and 72 deletions

View file

@ -296,7 +296,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
local cli2srv = round((value["cli2srv.bytes"] * 100) / value["bytes"], 0)
record["column_breakdown"] = "<div class='progress'><div class='progress-bar progress-bar-warning' style='width: " .. cli2srv .."%;'>Client</div><div class='progress-bar progress-bar-info' style='width: " .. (100-cli2srv) .. "%;'>Server</div></div>"
record["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>"
local info = value["info"]