<%# LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: bandwidth.htm 9014 2012-08-14 13:08:18Z jow $ -%> <%- local ntm = require "luci.model.network".init() local uci = require "luci.model.uci".cursor() local dev local devices = { } for _, dev in luci.util.vspairs(luci.sys.net.up_devices()) do if dev ~= "lo" and not ntm:ignore_interface(dev) then devices[#devices+1] = dev end end local curdev = luci.dispatcher.context.requestpath curdev = curdev[#curdev] ~= "bandwidth" and curdev[#curdev] or devices[1] -%> <%+header%>
<% local SupportRadio="" if WLAN24G == "1" then SupportRadio = "2.4G" end if WLAN5G == "1" then if SupportRadio=="" then SupportRadio="5G" else SupportRadio=""..SupportRadio.." and 5G" end if WLAN5G_2 == "1" then SupportRadio = ""..SupportRadio.."-1 and 5G-2" end end %>

<%=SupportRadio%><%: and Ethernet port inbound and outbound traffic by current, average and peak time.%>

<%:Realtime Traffic%> (KB/s)

-

<%:Inbound:%> (0 <%:KB/s%>) <%:Average:%> (0 <%:KB/s%>) <%:Peak:%> (0 <%:KB/s%>)
<%:Outbound:%> (0 <%:KB/s%>) <%:Average:%> (0 <%:KB/s%>) <%:Peak:%> (0 <%:KB/s%>)
<%+footer%>