luci-app-statistics: standardise newline usage
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 28 Sep 2021 20:00:42 +0000 (23:00 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 28 Sep 2021 20:03:54 +0000 (23:03 +0300)
Fix newline usage in a few graph definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 12b13fe89a9d21560303c963123493268a5017c0)

applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/dns.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/irq.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/load.js
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js

index 029471f801ec66f4ae7753c52630758c7eb36a97..347bd23317897faf232ed8f100faa077a69126b7 100644 (file)
@@ -11,7 +11,8 @@ return baseclass.extend({
 
        rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
                var traffic = {
-                       title: "%H: DNS traffic", vlabel: "Bit/s",
+                       title: "%H: DNS traffic",
+                       vlabel: "Bit/s",
 
                        data: {
                                sources: {
@@ -35,7 +36,8 @@ return baseclass.extend({
                };
 
                var opcode_query = {
-                       title: "%H: DNS Opcode Query", vlabel: "Queries/s",
+                       title: "%H: DNS Opcode Query",
+                       vlabel: "Queries/s",
                        data: {
                                instances: {
                                        dns_opcode: [ "Query" ]
@@ -52,7 +54,8 @@ return baseclass.extend({
                };
 
                var qtype = {
-                       title: "%H: DNS QType", vlabel: "Queries/s",
+                       title: "%H: DNS QType",
+                       vlabel: "Queries/s",
                        data: {
                                sources: { dns_qtype: [ "" ] },
                                options: {
index 29675f77c304853247cf60cd6fc5c38d9f9f4586..150bc497f3eacd9ed592a52d3d92a3f94e420af4 100644 (file)
@@ -8,8 +8,10 @@ return baseclass.extend({
 
        rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
                return {
-                       title: "%H: Interrupts", vlabel: "Issues/s",
-                       number_format: "%5.0lf", data: {
+                       title: "%H: Interrupts",
+                       vlabel: "Issues/s",
+                       number_format: "%5.0lf",
+                       data: {
                                types: [ "irq" ],
                                options: {
                                        irq: { title: "IRQ %di", noarea: true }
index a10469110077a0a69194236a5f7b3d05d1763777..f1a8114463549f4912e2f468fd1eaf011714b22e 100644 (file)
@@ -8,10 +8,12 @@ return baseclass.extend({
 
        rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
                return {
-                       title: "%H: Load", vlabel: "Load",
+                       title: "%H: Load",
+                       vlabel: "Load",
                        y_min: "0",
                        units_exponent: "0",
-                       number_format: "%5.2lf", data: {
+                       number_format: "%5.2lf",
+                       data: {
                                sources: {
                                        load: [ "shortterm", "midterm", "longterm" ]
                                },
index b311efba36e97ad077a2c0f752ddcafeb599b810..93cb266dc00795a04d1e70264d6892904f1b9747 100644 (file)
@@ -15,8 +15,10 @@ return baseclass.extend({
                if (plugin_instance == "routes") {
                        g.push({
                                /* diagram data description */
-                               title: "%H: Total amount of OLSR routes", vlabel: "n",
-                               number_format: "%5.0lf", data: {
+                               title: "%H: Total amount of OLSR routes",
+                               vlabel: "n",
+                               number_format: "%5.0lf",
+                               data: {
                                        types: [ "routes" ],
                                        options: {
                                                routes: {
@@ -26,8 +28,11 @@ return baseclass.extend({
                                        }
                                }
                        }, {
-                               title: "%H: Average route ETX", vlabel: "ETX", detail: true,
-                               number_format: "%5.1lf", data: {
+                               title: "%H: Average route ETX",
+                               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 */
                                        types: [ "route_etx" ],
                                        options: {
@@ -37,8 +42,11 @@ return baseclass.extend({
                                        }
                                }
                        }, {
-                               title: "%H: Average route metric", vlabel: "metric", detail: true,
-                               number_format: "%5.1lf", data: {
+                               title: "%H: Average route metric",
+                               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 */
                                        types: [ "route_metric" ],
                                        options: {
@@ -52,8 +60,10 @@ return baseclass.extend({
                else if (plugin_instance == "links") {
                        g.push({
                                /* diagram data description */
-                               title: "%H: Total amount of OLSR neighbours", vlabel: "n",
-                               number_format: "%5.0lf", data: {
+                               title: "%H: Total amount of OLSR neighbours",
+                               vlabel: "n",
+                               number_format: "%5.0lf",
+                               data: {
                                        instances: [ "" ],
                                        types: [ "links" ],
                                        options: {
@@ -95,8 +105,10 @@ return baseclass.extend({
                }
                else if (plugin_instance == "topology") {
                        g.push({
-                               title: "%H: Total amount of OLSR links", vlabel: "n",
-                               number_format: "%5.0lf", data: {
+                               title: "%H: Total amount of OLSR links",
+                               vlabel: "n",
+                               number_format: "%5.0lf",
+                               data: {
                                        instances: [ "" ],
                                        types: [ "links" ],
                                        options: {
@@ -107,8 +119,10 @@ return baseclass.extend({
                                        }
                                }
                        }, {
-                               title: "%H: Average signal quality", vlabel: "n",
-                               number_format: "%5.2lf", detail: true,
+                               title: "%H: Average signal quality",
+                               vlabel: "n",
+                               number_format: "%5.2lf",
+                               detail: true,
                                data: {
                                        instances: [ "average" ], /* exclude possible per-ip stuff */
                                        types: [ "signal_quality" ],