projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-0.11: merge outstanding trunk changes
[project/luci.git]
/
applications
/
luci-qos
/
luasrc
/
model
/
cbi
/
qos
/
qos.lua
diff --git
a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua
b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua
index 98e9a250701ce08ed306af911170e3cafe55623e..1af3bdbbd3859c8dd8f4bba900aee23f455c3c37 100644
(file)
--- a/
applications/luci-qos/luasrc/model/cbi/qos/qos.lua
+++ b/
applications/luci-qos/luasrc/model/cbi/qos/qos.lua
@@
-35,9
+35,11
@@
s:option(Flag, "overhead", translate("Calculate overhead"))
s:option(Flag, "halfduplex", translate("Half-duplex"))
s:option(Flag, "halfduplex", translate("Half-duplex"))
-s:option(Value, "download", translate("Download speed (kbit/s)"))
+dl = s:option(Value, "download", translate("Download speed (kbit/s)"))
+dl.datatype = "and(uinteger,min(1))"
-s:option(Value, "upload", translate("Upload speed (kbit/s)"))
+ul = s:option(Value, "upload", translate("Upload speed (kbit/s)"))
+ul.datatype = "and(uinteger,min(1))"
s = m:section(TypedSection, "classify", translate("Classification Rules"))
s.template = "cbi/tblsection"
s = m:section(TypedSection, "classify", translate("Classification Rules"))
s.template = "cbi/tblsection"