summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-01-24 09:50:40 +0100
committerFlorian Eckert <fe@dev.tdt.de>2019-02-25 14:45:00 +0100
commite380c29960c4cd245839898ae6d61aea6013c6ab (patch)
treeaf788fb9c9f3af195b4ac8e69a82dee0e9c3ec7a /applications/luci-app-statistics
parent21b29f3faf8b0ce9d2db1aa07b3ebc93a7a5621a (diff)
luci-app-statistics: fix whitespaces
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r--applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua31
1 files changed, 15 insertions, 16 deletions
diff --git a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index 9a3850d68..a89f9f4f8 100644
--- a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@ -26,34 +26,34 @@ function index()
apcups = _("APC UPS"),
conntrack = _("Conntrack"),
contextswitch = _("Context Switches"),
- cpu = _("Processor"),
+ cpu = _("Processor"),
cpufreq = _("CPU Frequency"),
- csv = _("CSV Output"),
+ csv = _("CSV Output"),
curl = _("cUrl"),
- df = _("Disk Space Usage"),
+ df = _("Disk Space Usage"),
disk = _("Disk Usage"),
- dns = _("DNS"),
+ dns = _("DNS"),
email = _("Email"),
entropy = _("Entropy"),
exec = _("Exec"),
interface = _("Interfaces"),
iptables = _("Firewall"),
- irq = _("Interrupts"),
+ irq = _("Interrupts"),
iwinfo = _("Wireless"),
load = _("System Load"),
memory = _("Memory"),
netlink = _("Netlink"),
network = _("Network"),
- nut = _("UPS"),
+ nut = _("UPS"),
olsrd = _("OLSRd"),
openvpn = _("OpenVPN"),
ping = _("Ping"),
processes = _("Processes"),
rrdtool = _("RRDTool"),
- sensors = _("Sensors"),
- splash_leases = _("Splash Leases"),
+ sensors = _("Sensors"),
+ splash_leases = _("Splash Leases"),
tcpconns = _("TCP Connections"),
- thermal = _("Thermal"),
+ thermal = _("Thermal"),
unixsock = _("UnixSock"),
uptime = _("Uptime")
}
@@ -170,12 +170,12 @@ function statistics_render()
local images = { }
-- find requested plugin and instance
- for i, p in ipairs( luci.dispatcher.context.path ) do
- if luci.dispatcher.context.path[i] == "graph" then
- plugin = luci.dispatcher.context.path[i+1]
- instances = { luci.dispatcher.context.path[i+2] }
- end
- end
+ for i, p in ipairs( luci.dispatcher.context.path ) do
+ if luci.dispatcher.context.path[i] == "graph" then
+ plugin = luci.dispatcher.context.path[i+1]
+ instances = { luci.dispatcher.context.path[i+2] }
+ end
+ end
-- no instance requested, find all instances
if #instances == 0 then
@@ -189,7 +189,6 @@ function statistics_render()
is_index = true
end
-
-- render graphs
for i, inst in luci.util.vspairs( instances ) do
for i, img in luci.util.vspairs( graph:render( plugin, inst, is_index ) ) do