summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-01-21 20:13:12 +0100
committerGitHub <noreply@github.com>2019-01-21 20:13:12 +0100
commit29c343c5ea7abbe9e81f316264800702479a90ff (patch)
tree0f10f96175ff9803d6c3ce57621423ecbd89f786 /applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
parenta86c068870dea59844a282ca43885ef4fcbfa07f (diff)
parentc593a210b2305f7901fcb45e0cc1810f4534164c (diff)
Merge pull request #2473 from TDT-AG/pr/20190121-luci-app-statistics
luci-app-statistics: some code cleanup
Diffstat (limited to 'applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua')
-rw-r--r--applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
index dafcc452cc..4245018661 100644
--- a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
+++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/dns.lua
@@ -1,7 +1,7 @@
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-require("luci.sys")
+local sys = require("luci.sys")
m = Map("luci_statistics",
@@ -24,7 +24,7 @@ interfaces.widget = "select"
interfaces.size = 5
interfaces:depends( "enable", 1 )
interfaces:value("any")
-for k, v in pairs(luci.sys.net.devices()) do
+for k, v in pairs(sys.net.devices()) do
interfaces:value(v)
end