* luc/statistics: add file/license headers
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 3 Jun 2008 23:15:16 +0000 (23:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 3 Jun 2008 23:15:16 +0000 (23:15 +0000)
17 files changed:
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
applications/luci-statistics/luasrc/statistics/datatree.lua
applications/luci-statistics/luasrc/statistics/i18n.lua
applications/luci-statistics/luasrc/statistics/rrdtool.lua
applications/luci-statistics/luasrc/statistics/rrdtool/colors.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu/cpu.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iptables/ipt_packets.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/irq/irq.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/netlink.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes/ps_state.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/tcpconns/tcp_connections.lua
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua

index 3b1bb99..ae1679b 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - statistics controller module
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.controller.luci_statistics.luci_statistics", package.seeall)
 
 function index()
@@ -20,11 +35,6 @@ function index()
                end
        end
 
-       -- override call(): call requested action function with supplied parameters
-       function _call( func, tree, plugin )
-               return function() getfenv()[func]( tree, plugin ) end
-       end
-
        -- override i18n(): try to translate stat_<str> or fall back to <str>
        function _i18n( str )
                return luci.i18n.translate( "stat_" .. str, str )
@@ -124,7 +134,7 @@ function statistics_networkplugins()
 end
 
 
-function statistics_render( tree )
+function statistics_render()
 
        require("luci.statistics.rrdtool")
        require("luci.template")
index 327b8ef..03608b1 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - rrd data tree builder
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.datatree", package.seeall)
 
 local util = require("luci.util")
index a31d126..8658395 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - diagram i18n helper
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.i18n", package.seeall)
 
 require("luci.util")
index 5f07a41..b6f6d44 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - rrdtool interface library / diagram model interpreter
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool", package.seeall)
 
 require("luci.statistics.datatree")
index cdd6f71..8f28524 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - diagram color helper class
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.colors", package.seeall)
 
 require("luci.util")
index add69e4..68468c0 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - data definition database (obsolete)
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions", package.seeall)
 
 require("luci.util")
index bd002e1..d6053a5 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - cpu plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.cpu.cpu",package.seeall)
 
 function rrdargs( graph, host, plugin, plugin_instance, dtype )
index a6045b7..1d29800 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - df plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.df.df", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index 0d812d6..029ffe3 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - interface plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.interface", package.seeall)
 
 function rrdargs( graph, host, plugin, plugin_instance )
index 2ab57e8..e1dd507 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - iptables plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.iptables.ipt_packets", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index a68227b..270e06f 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - irq plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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: stat-genconfig 2272 2008-06-03 22:42:01Z nbd $
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.irq.irq", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index 8f32ab3..daff584 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - netlink plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance )
index a7bf295..6a3bd5e 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - ping plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.ping.ping", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index 17f1e2b..f2ca2c6 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - processes plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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: stat-genconfig 2272 2008-06-03 22:42:01Z nbd $
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.processes", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance )
index 5dd446f..c95152e 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - processes plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.processes.ps_state", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index 7f54c10..9f62541 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - tcpconns plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.tcpconns.tcp_connections", package.seeall)
 
 function rrdargs( graph, plugin, plugin_instance, dtype )
index 7c08885..9bcbc06 100644 (file)
@@ -1,3 +1,18 @@
+--[[
+
+Luci statistics - wireless plugin diagram definition
+(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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$
+
+]]--
+
 module("luci.statistics.rrdtool.definitions.wireless", package.seeall)
 
 function rrdargs( graph, host, plugin, plugin_instance )