Changeset 1673

Show
Ignore:
Timestamp:
17/06/10 12:49:52 (5 years ago)
Author:
cyrus
Message:

QoS: Fix speed selector

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/luci/applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua

    r1601 r1673  
    3030 
    3131local download = s:option(ListValue, "download", translate("qos_interface_download")) 
    32 for i = 128, 1024, 128 do 
    33         download:value(i, i.." Kb/s") 
     32for i = 128, 1023, 128 do 
     33        download:value(i, i.." KB/s") 
    3434end 
    3535for i = 1, 10 do 
    36         download:value(i * 1024, i.." Mb/s") 
     36        download:value(i * 1024, i.." MB/s") 
    3737end 
    38 download:value(25 * 1024, "25 Mb/s") 
    39 download:value(50 * 1024, "50 Mb/s") 
    40 download:value(100 * 1024, "100 Mb/s") 
     38download:value(25 * 1024, "25 MB/s") 
     39download:value(50 * 1024, "50 MB/s") 
     40download:value(100 * 1024, "100 MB/s") 
    4141download:depends("enabled", "1") 
    4242 
    4343local upload = s:option(ListValue, "upload", translate("qos_interface_upload")) 
    44 for i = 128, 1024, 128 do 
    45         upload:value(i, i.." Kb/s") 
     44for i = 128, 1023, 128 do 
     45        upload:value(i, i.." KB/s") 
    4646end 
    4747for i = 1, 10 do 
    48         upload:value(i * 1024, i.." Mb/s") 
     48        upload:value(i * 1024, i.." MB/s") 
    4949end 
    50 upload:value(25 * 1024, "25 Mb/s") 
    51 upload:value(50 * 1024, "50 Mb/s") 
    52 upload:value(100 * 1024, "100 Mb/s") 
     50upload:value(25 * 1024, "25 MB/s") 
     51upload:value(50 * 1024, "50 MB/s") 
     52upload:value(100 * 1024, "100 MB/s") 
    5353upload:depends("enabled", "1") 
    5454