mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
MUD improvements
- Handle configuration reset from gui - Handle validation - Show general and special device types info description
This commit is contained in:
parent
fc43445c60
commit
c7b2f12cc1
9 changed files with 141 additions and 13 deletions
|
|
@ -336,6 +336,20 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
function mud_utils.formatMaxRecording(max_recording_secs)
|
||||
if max_recording_secs == 3600 then
|
||||
return(i18n("show_alerts.1_hour"))
|
||||
elseif max_recording_secs == 86400 then
|
||||
return(i18n("show_alerts.1_day"))
|
||||
elseif max_recording_secs == 604800 then
|
||||
return(i18n("show_alerts.1_week"))
|
||||
else
|
||||
return(string.format("%u", max_recording_secs))
|
||||
end
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
function mud_utils.isMudScriptEnabled(ifid)
|
||||
local mud_user_script = loadMudUserScriptConf()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue