diff options
Diffstat (limited to 'applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua')
-rw-r--r-- | applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua index 3cd71a15d..cdc3a1084 100644 --- a/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua +++ b/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua @@ -16,26 +16,26 @@ $Id$ require("luci.sys") -m = Map("luci_statistics", "Interface Plugin", -[[Das Interface-Plugin sammelt Informationen zum Netzwerkverkehr auf den einzelnen Schnittstellen.]]) +m = Map("luci_statistics") -- collectd_interface config section -s = m:section( NamedSection, "collectd_interface", "luci_statistics", "Pluginkonfiguration" ) +s = m:section( NamedSection, "collectd_interface", "luci_statistics" ) -- collectd_interface.enable -enable = s:option( Flag, "enable", "Plugin aktivieren" ) +enable = s:option( Flag, "enable" ) enable.default = 0 -- collectd_interface.interfaces (Interface) -interfaces = s:option( MultiValue, "Interfaces", "Überwachte Schnittstellen", "mehrere Einträge mit Strg selektieren" ) +interfaces = s:option( MultiValue, "Interfaces" ) interfaces.widget = "select" +interfaces.size = 5 interfaces:depends( "enable", 1 ) for k, v in pairs(luci.sys.net.devices()) do interfaces:value(v) end -- collectd_interface.ignoreselected (IgnoreSelected) -ignoreselected = s:option( Flag, "IgnoreSelected", "Alle Schnittstellen außer ausgewählte überwachen" ) +ignoreselected = s:option( Flag, "IgnoreSelected" ) ignoreselected.default = 0 ignoreselected:depends( "enable", 1 ) |