mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-07 22:18:04 +00:00
16 lines
420 B
Lua
16 lines
420 B
Lua
--
|
|
-- (C) 2013-18 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
local prefs_dump_utils = require "prefs_dump_utils"
|
|
local prefs_changed = ntop.getCache("ntopng.prefs_changed")
|
|
|
|
if(prefs_changed == "true") then
|
|
-- First delete prefs_changed then dump data
|
|
ntop.delCache("ntopng.prefs_changed")
|
|
prefs_dump_utils.savePrefsToDisk()
|
|
end
|
|
|