luci-app-statistics: fix whitespaces
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
21b29f3faf
commit
e380c29960
1 changed files with 15 additions and 16 deletions
|
@ -26,34 +26,34 @@ function index()
|
||||||
apcups = _("APC UPS"),
|
apcups = _("APC UPS"),
|
||||||
conntrack = _("Conntrack"),
|
conntrack = _("Conntrack"),
|
||||||
contextswitch = _("Context Switches"),
|
contextswitch = _("Context Switches"),
|
||||||
cpu = _("Processor"),
|
cpu = _("Processor"),
|
||||||
cpufreq = _("CPU Frequency"),
|
cpufreq = _("CPU Frequency"),
|
||||||
csv = _("CSV Output"),
|
csv = _("CSV Output"),
|
||||||
curl = _("cUrl"),
|
curl = _("cUrl"),
|
||||||
df = _("Disk Space Usage"),
|
df = _("Disk Space Usage"),
|
||||||
disk = _("Disk Usage"),
|
disk = _("Disk Usage"),
|
||||||
dns = _("DNS"),
|
dns = _("DNS"),
|
||||||
email = _("Email"),
|
email = _("Email"),
|
||||||
entropy = _("Entropy"),
|
entropy = _("Entropy"),
|
||||||
exec = _("Exec"),
|
exec = _("Exec"),
|
||||||
interface = _("Interfaces"),
|
interface = _("Interfaces"),
|
||||||
iptables = _("Firewall"),
|
iptables = _("Firewall"),
|
||||||
irq = _("Interrupts"),
|
irq = _("Interrupts"),
|
||||||
iwinfo = _("Wireless"),
|
iwinfo = _("Wireless"),
|
||||||
load = _("System Load"),
|
load = _("System Load"),
|
||||||
memory = _("Memory"),
|
memory = _("Memory"),
|
||||||
netlink = _("Netlink"),
|
netlink = _("Netlink"),
|
||||||
network = _("Network"),
|
network = _("Network"),
|
||||||
nut = _("UPS"),
|
nut = _("UPS"),
|
||||||
olsrd = _("OLSRd"),
|
olsrd = _("OLSRd"),
|
||||||
openvpn = _("OpenVPN"),
|
openvpn = _("OpenVPN"),
|
||||||
ping = _("Ping"),
|
ping = _("Ping"),
|
||||||
processes = _("Processes"),
|
processes = _("Processes"),
|
||||||
rrdtool = _("RRDTool"),
|
rrdtool = _("RRDTool"),
|
||||||
sensors = _("Sensors"),
|
sensors = _("Sensors"),
|
||||||
splash_leases = _("Splash Leases"),
|
splash_leases = _("Splash Leases"),
|
||||||
tcpconns = _("TCP Connections"),
|
tcpconns = _("TCP Connections"),
|
||||||
thermal = _("Thermal"),
|
thermal = _("Thermal"),
|
||||||
unixsock = _("UnixSock"),
|
unixsock = _("UnixSock"),
|
||||||
uptime = _("Uptime")
|
uptime = _("Uptime")
|
||||||
}
|
}
|
||||||
|
@ -170,12 +170,12 @@ function statistics_render()
|
||||||
local images = { }
|
local images = { }
|
||||||
|
|
||||||
-- find requested plugin and instance
|
-- find requested plugin and instance
|
||||||
for i, p in ipairs( luci.dispatcher.context.path ) do
|
for i, p in ipairs( luci.dispatcher.context.path ) do
|
||||||
if luci.dispatcher.context.path[i] == "graph" then
|
if luci.dispatcher.context.path[i] == "graph" then
|
||||||
plugin = luci.dispatcher.context.path[i+1]
|
plugin = luci.dispatcher.context.path[i+1]
|
||||||
instances = { luci.dispatcher.context.path[i+2] }
|
instances = { luci.dispatcher.context.path[i+2] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- no instance requested, find all instances
|
-- no instance requested, find all instances
|
||||||
if #instances == 0 then
|
if #instances == 0 then
|
||||||
|
@ -189,7 +189,6 @@ function statistics_render()
|
||||||
is_index = true
|
is_index = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- render graphs
|
-- render graphs
|
||||||
for i, inst in luci.util.vspairs( instances ) do
|
for i, inst in luci.util.vspairs( instances ) do
|
||||||
for i, img in luci.util.vspairs( graph:render( plugin, inst, is_index ) ) do
|
for i, img in luci.util.vspairs( graph:render( plugin, inst, is_index ) ) do
|
||||||
|
|
Loading…
Reference in a new issue