From d820ed48829ef46d150a31a7269c31b07039ae1b Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Fri, 28 Aug 2015 12:51:43 +0300 Subject: statistics: entropy plugin - fix placement of entropy.lua Move the file entropy.lua to the correct directory. Signed-off-by: Hannu Nyman --- .../luasrc/statistics/rrdtool/definitions/entropy.lua | 19 +++++++++++++++++++ .../luasrc/statistics/rrdtool/entropy.lua | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua delete mode 100644 applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua (limited to 'applications/luci-app-statistics/luasrc/statistics') 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 0000000000..3d30a70afb --- /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 3d30a70afb..0000000000 --- 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 - -- cgit v1.2.3