statistics: Add support for entropy stats
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / entropy.lua
1 -- Copyright 2015 Hannu Nyman <hannu.nyman@iki.fi>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.entropy", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8         return {
9                 title = "%H: Available entropy",
10                 vlabel = "bits",
11                 number_format = "%4.0lf",
12                 data = {
13                         types = { "entropy" },
14                         options = { entropy = { title = "Entropy %di" } }
15                 }
16         }
17
18 end
19