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:
emanuele-f 2020-01-13 15:19:22 +01:00
parent 93a96eb214
commit 85e55afe90
2 changed files with 9 additions and 1 deletions

View file

@ -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