Added initial work towards a new historical interface. In the Interfaces->name->Historical Actitivity it is now possible to see top flows when -F "mysql;...." is used

This commit is contained in:
Luca Deri 2015-08-16 15:00:40 +02:00
parent 3b72506ab0
commit e59d699837
10 changed files with 281 additions and 19 deletions

View file

@ -16,7 +16,7 @@ dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
ifstats = interface.getStats()
sql = _GET["sql"]
print('<p><form>SQL: <input type=text name=sql size="80" value="')
print('<p><form>SQL: <input type=text name=sql size="160" value="')
if((sql == nil) or (string.len(sql) == 0)) then
sql = "select * from flowsv4_"..ifstats.id.." order by LAST_SWITCHED desc limit 10"