From: Hannu Nyman Date: Fri, 28 Aug 2015 09:51:43 +0000 (+0300) Subject: statistics: entropy plugin - fix placement of entropy.lua X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=d820ed48829ef46d150a31a7269c31b07039ae1b statistics: entropy plugin - fix placement of entropy.lua Move the file entropy.lua to the correct directory. Signed-off-by: Hannu Nyman --- 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 index 000000000..3d30a70af --- /dev/null +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua @@ -0,0 +1,19 @@ +-- Copyright 2015 Hannu Nyman +-- 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 index 3d30a70af..000000000 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua +++ /dev/null @@ -1,19 +0,0 @@ --- Copyright 2015 Hannu Nyman --- 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 -