mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
nIndex queries enhancements
This commit is contained in:
parent
2fa99b3648
commit
a4559c9fae
2 changed files with 31 additions and 23 deletions
|
|
@ -170,6 +170,9 @@ res = interface.nIndexTopK(aggregated_flows, begin_time, end_time, select_keys,
|
|||
-- tprint(res)
|
||||
|
||||
if(res) then
|
||||
if(type(res) == "string") then
|
||||
print("<p> </p><font color=red>ERROR: "..res.."</font>")
|
||||
else
|
||||
if(res.info.duration == 0) then
|
||||
res.info.duration = " < 1"
|
||||
end
|
||||
|
|
@ -196,6 +199,7 @@ if(res) then
|
|||
end
|
||||
|
||||
print("</table>\n")
|
||||
end
|
||||
else
|
||||
print("No result")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue