mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added new prefs entry for nIndex
Added extra check in get_host_data.lua
This commit is contained in:
parent
3241f8de12
commit
6114b41671
2 changed files with 6 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ else
|
|||
end
|
||||
|
||||
sent2rcvd = round((host["bytes.sent"] * 100) / (host["bytes.sent"]+host["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