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:
emanuele-f 2018-10-01 10:47:31 +02:00
parent 78a457e731
commit f82a8e9767
9 changed files with 99 additions and 58 deletions

View file

@ -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