mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Return 0 filled points instead of nil when no data is available on InfluxDB
This behaviour makes InfluxDB consistent with the RRD driver
This commit is contained in:
parent
78a457e731
commit
f82a8e9767
9 changed files with 99 additions and 58 deletions
|
|
@ -81,6 +81,18 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function table.empty(tbl)
|
||||
if(tbl == nil) then return true end
|
||||
|
||||
if next(tbl) == nil then
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function isIPv6(ip)
|
||||
if((string.find(ip, ":")) and (not isMacAddress(ip))) then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue