<%# 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$ -%> <%- local ntm = require "luci.model.network".init() local dev local devices = { } for _, dev in luci.util.vspairs(luci.sys.net.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%>

<%:Realtime Traffic%>

-

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