mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Removes non-standard ts query function
This commit is contained in:
parent
7d65f378e6
commit
2597d02e03
1 changed files with 0 additions and 21 deletions
|
|
@ -90,27 +90,6 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
function queryEpochData(schema, tags, selectedEpoch, zoomLevel, options)
|
||||
if(zoomLevel == nil) then zoomLevel = "1h" end
|
||||
local d = getZoomDuration(zoomLevel)
|
||||
local end_time
|
||||
local start_time
|
||||
options = table.merge(options or {}, {initial_point=true})
|
||||
|
||||
if((selectedEpoch == nil) or (selectedEpoch == "")) then
|
||||
selectedEpoch = os.time()
|
||||
end_time = tonumber(selectedEpoch)
|
||||
start_time = end_time - d
|
||||
else
|
||||
end_time = tonumber(selectedEpoch) + math.floor(d / 2)
|
||||
start_time = tonumber(selectedEpoch) - math.floor(d / 2)
|
||||
end
|
||||
|
||||
return ts_utils.query(schema, tags, start_time, end_time, options)
|
||||
end
|
||||
|
||||
-- ########################################################
|
||||
|
||||
function getProtoVolume(ifName, start_time, end_time)
|
||||
ifId = getInterfaceId(ifName)
|
||||
local series = ts_utils.listSeries("iface:ndpi", {ifid=ifId}, start_time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue