Merge pull request #454 from hnyman/fix-entropy 438/head
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Aug 2015 10:06:25 +0000 (12:06 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Aug 2015 10:06:25 +0000 (12:06 +0200)
statistics: entropy plugin - fix placement of entropy.lua

applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua [new file with mode: 0644]
applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua [deleted file]

diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua
new file mode 100644 (file)
index 0000000..3d30a70
--- /dev/null
@@ -0,0 +1,19 @@
+-- Copyright 2015 Hannu Nyman <hannu.nyman@iki.fi>
+-- Licensed to the public under the Apache License 2.0.
+
+module("luci.statistics.rrdtool.definitions.entropy", package.seeall)
+
+function rrdargs( graph, plugin, plugin_instance, dtype )
+
+       return {
+               title = "%H: Available entropy",
+               vlabel = "bits",
+               number_format = "%4.0lf",
+               data = {
+                       types = { "entropy" },
+                       options = { entropy = { title = "Entropy %di" } }
+               }
+       }
+
+end
+
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua
deleted file mode 100644 (file)
index 3d30a70..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
--- Copyright 2015 Hannu Nyman <hannu.nyman@iki.fi>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.statistics.rrdtool.definitions.entropy", package.seeall)
-
-function rrdargs( graph, plugin, plugin_instance, dtype )
-
-       return {
-               title = "%H: Available entropy",
-               vlabel = "bits",
-               number_format = "%4.0lf",
-               data = {
-                       types = { "entropy" },
-                       options = { entropy = { title = "Entropy %di" } }
-               }
-       }
-
-end
-