mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implemented timeseries for number of unidirectional TCP flows
Enhanced error codes in GUI
This commit is contained in:
parent
16e842311d
commit
d541c8859c
7 changed files with 26 additions and 8 deletions
|
|
@ -1333,7 +1333,8 @@ end
|
|||
function format_http_info(http_info)
|
||||
if http_info["last_return_code"] then
|
||||
if http_info["last_return_code"] ~= 0 then
|
||||
local badge = get_badge(http_info.last_return_code == 200)
|
||||
local badge = get_badge(http_info.last_return_code < 400)
|
||||
|
||||
http_info["last_return_code"] = string.format('<span class="badge bg-%s">%s</span>', badge, http_utils.getResponseStatusCode(http_info["last_return_code"]))
|
||||
else
|
||||
http_info["last_return_code"] = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue