diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-27 10:19:38 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-08-27 10:19:38 +0300 |
commit | 7df0df48c006bbe3a8f4f73cd7b0bdc9bec0f80e (patch) | |
tree | a0be874edeb594b2346bbbfdb855a93821a9d8d4 /applications/luci-app-statistics/luasrc/statistics | |
parent | 084d435060f73a8e098c8022a43bd9f5b1fd63ca (diff) |
statistics: Add support for entropy stats
Add statistics on the available entropy.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua new file mode 100644 index 000000000..3d30a70af --- /dev/null +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/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 + |