Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua

This commit is contained in:
Luca Deri 2018-06-12 23:05:30 +02:00
parent 3cf623901c
commit 203404df5b
9 changed files with 24 additions and 25 deletions

View file

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