1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix typo and QoS speed limit set like sqm speed limit in wizard

This commit is contained in:
Ycarus 2018-08-20 14:02:56 +02:00
parent bad27cdf58
commit 89bd189478
2 changed files with 21 additions and 10 deletions

View file

@ -167,31 +167,36 @@
</div>
</div>
<%
if nixio.fs.access("/etc/init.d/sqm") then
local download = ""
local upload = ""
if nixio.fs.access("/etc/init.d/sqm") then
download = uci:get("sqm",ifname,"download")
upload = uci:get("sqm",ifname,"upload")
else
download = uci:get("qos",ifname,"download")
upload = uci:get("qos",ifname,"upload")
end
%>
<div class="cbi-value">
<label class="cbi-value-title"><%:Download speed (Kb/s)%></label>
<div class="cbi-value-field">
<input type="text" name="cbid.sqm.<%=ifname%>.download" class="cbi-input-text" value="<%=uci:get("sqm",ifname,"download")%>" data-type="uinteger">
<input type="text" name="cbid.sqm.<%=ifname%>.download" class="cbi-input-text" value="<%=download%>" data-type="uinteger">
<br />
<div class="cbi-value-description">
<%:Set value between 80-95% of max download speed link. Used for SQM. Empty to disable.%>
<%:Set value between 80-95% of max download speed link. Empty to disable.%>
</div>
</div>
</div>
<div class="cbi-value">
<label class="cbi-value-title"><%:Upload speed (Kb/s)%></label>
<div class="cbi-value-field">
<input type="text" name="cbid.sqm.<%=ifname%>.upload" class="cbi-input-text" value="<%=uci:get("sqm",ifname,"upload")%>" data-type="uinteger">
<input type="text" name="cbid.sqm.<%=ifname%>.upload" class="cbi-input-text" value="<%=upload%>" data-type="uinteger">
<br />
<div class="cbi-value-description">
<%:Set value between 80-95% of max upload speed link. Used for SQM. Empty to disable.%>
<%:Set value between 80-95% of max upload speed link. Empty to disable.%>
</div>
</div>
</div>
<%
end
%>
</fieldset>
<%
end