mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix hosts statistics update frequency range and step
Note: the stats update is performed into the stats_update.lua which is executed every 5 seconds.
This commit is contained in:
parent
93a96eb214
commit
85e55afe90
2 changed files with 9 additions and 1 deletions
|
|
@ -243,6 +243,14 @@ function prefsInputFieldPrefs(label, comment, prekey, key, default_value, _input
|
|||
end
|
||||
end
|
||||
|
||||
if extra.step ~= nil then
|
||||
if extra.tformat ~= nil then
|
||||
attributes["data-step"] = extra.step
|
||||
else
|
||||
attributes["step"] = extra.step
|
||||
end
|
||||
end
|
||||
|
||||
if extra.disabled == true then attributes["disabled"] = "disabled" end
|
||||
if extra.required == true then attributes["required"] = "" end
|
||||
if extra.pattern ~= nil then attributes["pattern"] = extra.pattern end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue