nIndex queries enhancements

This commit is contained in:
Luca Deri 2018-09-03 22:22:23 +02:00
parent 2fa99b3648
commit a4559c9fae
2 changed files with 31 additions and 23 deletions

View file

@ -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>&nbsp;</p><font color=red>ERROR: "..res.."</font>")
else
if(res.info.duration == 0) then
res.info.duration = " &lt; 1"
end
@ -196,6 +199,7 @@ if(res) then
end
print("</table>\n")
end
else
print("No result")
end