ntopng/scripts/callbacks/interface/hourly.lua
Matteo Biscosi c62c2c232e Removed useless requires for enchanting performances
Removed, where it was possible, the lua requires, with the objective of enchanting the performances of periodic activities
2021-02-23 10:51:50 +01:00

16 lines
465 B
Lua

--
-- (C) 2013 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
if (ntop.isPro()) then
package.path = dirs.installdir .. "/pro/scripts/callbacks/interface/?.lua;" .. package.path
require('hourly')
end
-- ########################################################
local k = string.format("ntopng.cache.ifid_%i.user_scripts.request.granularity_hourly", interface.getId())
ntop.setCache(k, "1")