mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 17:58:09 +00:00
Added missing return code in interface.execSQLQuery
This commit is contained in:
parent
ba9551baff
commit
d8bf334ea7
7 changed files with 27 additions and 19 deletions
|
|
@ -410,9 +410,11 @@ function as_utils.retrieveASHistoricalTraffic(options)
|
|||
") GROUP BY asn", where, ternary(isEmptyString(src_asn_filters), "", " AND " .. src_asn_filters), where,
|
||||
ternary(isEmptyString(dst_asn_filters), "", " AND " .. dst_asn_filters))
|
||||
|
||||
local historical_asn_stats = interface.execSQLQuery(query) or {}
|
||||
local historical_asn_stats,err = interface.execSQLQuery(query)
|
||||
local asn_stats = {}
|
||||
|
||||
historical_asn_stats = historical_asn_stats or {}
|
||||
|
||||
if (perform_profiling) then
|
||||
traceError(TRACE_NORMAL, TRACE_CONSOLE,
|
||||
string.format("[ASN Profiling][Time: %s] End request to DB (Historical)\n", os.time()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue