mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
prevent alert showing for system interface (#4535)
This commit is contained in:
parent
4a80acc1f7
commit
40499bfd2d
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ local info = ntop.getInfo()
|
|||
local prefs = ntop.getPrefs()
|
||||
|
||||
local defined_alert_notifications = {}
|
||||
local page_utils = require('page_utils')
|
||||
local telemetry_utils = require("telemetry_utils")
|
||||
local alert_notification = require("alert_notification")
|
||||
|
||||
|
|
@ -251,8 +252,9 @@ end
|
|||
|
||||
function defined_alert_notifications.remote_probe_clock_drift(container)
|
||||
local ifstats = interface.getStats()
|
||||
local is_system_interface = page_utils.is_system_view()
|
||||
|
||||
if (ifstats["probe.remote_time"] ~= nil) then
|
||||
if (ifstats["probe.remote_time"] ~= nil) and (not is_system_interface) then
|
||||
local tdiff = math.abs(os.time() - ifstats["probe.remote_time"])
|
||||
local level = nil
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue