mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added switch between normal and per minute traffic ts
This commit is contained in:
parent
98c8b49d97
commit
665c743174
3 changed files with 134 additions and 3 deletions
|
|
@ -101,6 +101,12 @@ function ts_data.get_timeseries(http_context)
|
|||
interface.select(options.tags.ifid)
|
||||
end
|
||||
|
||||
if options.schema == 'snmp_if:traffic_min' and options.tags.port then
|
||||
options.tags.if_index = options.tags.port
|
||||
options.tags.ifid = getSystemInterfaceId()
|
||||
options.tags.port = nil
|
||||
end
|
||||
|
||||
if http_context.tskey then
|
||||
-- This can contain a MAC address for local broadcast domain hosts
|
||||
local tskey = http_context.tskey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue