diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-28 12:51:43 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-28 12:51:43 +0300 |
commit | d820ed48829ef46d150a31a7269c31b07039ae1b (patch) | |
tree | 7b5c7e6966946c66fbc883c468b17065040634df /applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions | |
parent | c48fbfa992c9f3be4dafd5963918031f68ef46ae (diff) |
statistics: entropy plugin - fix placement of entropy.lua
Move the file entropy.lua to the correct directory.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/entropy.lua | 19 |
1 files changed, 19 insertions, 0 deletions
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 <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 + |