mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua
This commit is contained in:
parent
3cf623901c
commit
203404df5b
9 changed files with 24 additions and 25 deletions
|
|
@ -378,6 +378,7 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
end
|
||||
|
||||
sent2rcvd = round((value["bytes.sent"] * 100) / (value["bytes.sent"]+value["bytes.rcvd"]), 0)
|
||||
if(sent2rcvd == nil) then sent2rcvd = 0 end
|
||||
print ("\", \"column_breakdown\" : \"<div class='progress'><div class='progress-bar progress-bar-warning' style='width: "
|
||||
.. sent2rcvd .."%;'>Sent</div><div class='progress-bar progress-bar-info' style='width: " .. (100-sent2rcvd) .. "%;'>Rcvd</div></div>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue