574724c4219b62b7eab54f123c1ae4d8407dffd4
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / entropy.js
1 /*
2 * Copyright 2015 Hannu Nyman <hannu.nyman@iki.fi>
3 * Licensed to the public under the Apache License 2.0
4 */
5
6 'use strict';
7
8 return L.Class.extend({
9 title: _('Entropy'),
10
11 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
12 return {
13 title: "%H: Available entropy",
14 vlabel: "bits",
15 number_format: "%4.0lf",
16 data: {
17 types: [ "entropy" ],
18 options: { entropy: { title: "Entropy %di" } }
19 }
20 };
21 }
22 });