luci-app-statistics: standardise newline usage
Fix newline usage in a few graph definitions.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 12b13fe89a
)
This commit is contained in:
parent
26308981ca
commit
b39d9bf4bb
4 changed files with 40 additions and 19 deletions
|
@ -11,7 +11,8 @@ return baseclass.extend({
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
var traffic = {
|
var traffic = {
|
||||||
title: "%H: DNS traffic", vlabel: "Bit/s",
|
title: "%H: DNS traffic",
|
||||||
|
vlabel: "Bit/s",
|
||||||
|
|
||||||
data: {
|
data: {
|
||||||
sources: {
|
sources: {
|
||||||
|
@ -35,7 +36,8 @@ return baseclass.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
var opcode_query = {
|
var opcode_query = {
|
||||||
title: "%H: DNS Opcode Query", vlabel: "Queries/s",
|
title: "%H: DNS Opcode Query",
|
||||||
|
vlabel: "Queries/s",
|
||||||
data: {
|
data: {
|
||||||
instances: {
|
instances: {
|
||||||
dns_opcode: [ "Query" ]
|
dns_opcode: [ "Query" ]
|
||||||
|
@ -52,7 +54,8 @@ return baseclass.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
var qtype = {
|
var qtype = {
|
||||||
title: "%H: DNS QType", vlabel: "Queries/s",
|
title: "%H: DNS QType",
|
||||||
|
vlabel: "Queries/s",
|
||||||
data: {
|
data: {
|
||||||
sources: { dns_qtype: [ "" ] },
|
sources: { dns_qtype: [ "" ] },
|
||||||
options: {
|
options: {
|
||||||
|
|
|
@ -8,8 +8,10 @@ return baseclass.extend({
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
return {
|
return {
|
||||||
title: "%H: Interrupts", vlabel: "Issues/s",
|
title: "%H: Interrupts",
|
||||||
number_format: "%5.0lf", data: {
|
vlabel: "Issues/s",
|
||||||
|
number_format: "%5.0lf",
|
||||||
|
data: {
|
||||||
types: [ "irq" ],
|
types: [ "irq" ],
|
||||||
options: {
|
options: {
|
||||||
irq: { title: "IRQ %di", noarea: true }
|
irq: { title: "IRQ %di", noarea: true }
|
||||||
|
|
|
@ -8,10 +8,12 @@ return baseclass.extend({
|
||||||
|
|
||||||
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
||||||
return {
|
return {
|
||||||
title: "%H: Load", vlabel: "Load",
|
title: "%H: Load",
|
||||||
|
vlabel: "Load",
|
||||||
y_min: "0",
|
y_min: "0",
|
||||||
units_exponent: "0",
|
units_exponent: "0",
|
||||||
number_format: "%5.2lf", data: {
|
number_format: "%5.2lf",
|
||||||
|
data: {
|
||||||
sources: {
|
sources: {
|
||||||
load: [ "shortterm", "midterm", "longterm" ]
|
load: [ "shortterm", "midterm", "longterm" ]
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,8 +15,10 @@ return baseclass.extend({
|
||||||
if (plugin_instance == "routes") {
|
if (plugin_instance == "routes") {
|
||||||
g.push({
|
g.push({
|
||||||
/* diagram data description */
|
/* diagram data description */
|
||||||
title: "%H: Total amount of OLSR routes", vlabel: "n",
|
title: "%H: Total amount of OLSR routes",
|
||||||
number_format: "%5.0lf", data: {
|
vlabel: "n",
|
||||||
|
number_format: "%5.0lf",
|
||||||
|
data: {
|
||||||
types: [ "routes" ],
|
types: [ "routes" ],
|
||||||
options: {
|
options: {
|
||||||
routes: {
|
routes: {
|
||||||
|
@ -26,8 +28,11 @@ return baseclass.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: "%H: Average route ETX", vlabel: "ETX", detail: true,
|
title: "%H: Average route ETX",
|
||||||
number_format: "%5.1lf", data: {
|
vlabel: "ETX",
|
||||||
|
detail: true,
|
||||||
|
number_format: "%5.1lf",
|
||||||
|
data: {
|
||||||
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
|
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
|
||||||
types: [ "route_etx" ],
|
types: [ "route_etx" ],
|
||||||
options: {
|
options: {
|
||||||
|
@ -37,8 +42,11 @@ return baseclass.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: "%H: Average route metric", vlabel: "metric", detail: true,
|
title: "%H: Average route metric",
|
||||||
number_format: "%5.1lf", data: {
|
vlabel: "metric",
|
||||||
|
detail: true,
|
||||||
|
number_format: "%5.1lf",
|
||||||
|
data: {
|
||||||
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
|
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
|
||||||
types: [ "route_metric" ],
|
types: [ "route_metric" ],
|
||||||
options: {
|
options: {
|
||||||
|
@ -52,8 +60,10 @@ return baseclass.extend({
|
||||||
else if (plugin_instance == "links") {
|
else if (plugin_instance == "links") {
|
||||||
g.push({
|
g.push({
|
||||||
/* diagram data description */
|
/* diagram data description */
|
||||||
title: "%H: Total amount of OLSR neighbours", vlabel: "n",
|
title: "%H: Total amount of OLSR neighbours",
|
||||||
number_format: "%5.0lf", data: {
|
vlabel: "n",
|
||||||
|
number_format: "%5.0lf",
|
||||||
|
data: {
|
||||||
instances: [ "" ],
|
instances: [ "" ],
|
||||||
types: [ "links" ],
|
types: [ "links" ],
|
||||||
options: {
|
options: {
|
||||||
|
@ -95,8 +105,10 @@ return baseclass.extend({
|
||||||
}
|
}
|
||||||
else if (plugin_instance == "topology") {
|
else if (plugin_instance == "topology") {
|
||||||
g.push({
|
g.push({
|
||||||
title: "%H: Total amount of OLSR links", vlabel: "n",
|
title: "%H: Total amount of OLSR links",
|
||||||
number_format: "%5.0lf", data: {
|
vlabel: "n",
|
||||||
|
number_format: "%5.0lf",
|
||||||
|
data: {
|
||||||
instances: [ "" ],
|
instances: [ "" ],
|
||||||
types: [ "links" ],
|
types: [ "links" ],
|
||||||
options: {
|
options: {
|
||||||
|
@ -107,8 +119,10 @@ return baseclass.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
title: "%H: Average signal quality", vlabel: "n",
|
title: "%H: Average signal quality",
|
||||||
number_format: "%5.2lf", detail: true,
|
vlabel: "n",
|
||||||
|
number_format: "%5.2lf",
|
||||||
|
detail: true,
|
||||||
data: {
|
data: {
|
||||||
instances: [ "average" ], /* exclude possible per-ip stuff */
|
instances: [ "average" ], /* exclude possible per-ip stuff */
|
||||||
types: [ "signal_quality" ],
|
types: [ "signal_quality" ],
|
||||||
|
|
Loading…
Reference in a new issue