From 7df0df48c006bbe3a8f4f73cd7b0bdc9bec0f80e Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Thu, 27 Aug 2015 10:19:38 +0300 Subject: statistics: Add support for entropy stats Add statistics on the available entropy. Signed-off-by: Hannu Nyman --- .../luasrc/statistics/rrdtool/entropy.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 applications/luci-app-statistics/luasrc/statistics/rrdtool/entropy.lua (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool') 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 0000000000..3d30a70afb --- /dev/null +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/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 + -- cgit v1.2.3