luci-app-statistics: re-order CPU utilization graph classes
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 4 Dec 2021 19:18:39 +0000 (21:18 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 4 Dec 2021 19:18:39 +0000 (21:18 +0200)
Reorder the CPU utilization classes to be in a more logical order
(from hardware toward user) instead of alphabetical order.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/cpu.js

index 7d0dc9a15a4cbab4725f3bfd2b1fc7ff0140f2a6..796b2cc8d4238d815c26977c5cc3b808a1063692 100644 (file)
@@ -28,13 +28,13 @@ return baseclass.extend({
                                        instances: {
                                                cpu: [
                                                        ...(show_idle ? ["idle"] : []),
-                                                       "interrupt",
                                                        "nice",
-                                                       "softirq",
-                                                       "steal",
-                                                       "system",
                                                        "user",
-                                                       "wait"
+                                                       "wait",
+                                                       "system",
+                                                       "softirq",
+                                                       "interrupt",
+                                                       "steal"
                                                ]
                                        },
                                        options: {
@@ -68,7 +68,7 @@ return baseclass.extend({
                                                },
                                                cpu_wait: {
                                                        color: "ffb000",
-                                                       title: "Wait"
+                                                       title: "Wait I/O"
                                                }
                                        }
                                }
@@ -84,13 +84,13 @@ return baseclass.extend({
                                        instances: {
                                                percent: [
                                                        ...(show_idle ? ["idle"] : []),
-                                                       "interrupt",
                                                        "nice",
-                                                       "softirq",
-                                                       "steal",
-                                                       "system",
                                                        "user",
-                                                       "wait"
+                                                       "wait",
+                                                       "system",
+                                                       "softirq",
+                                                       "interrupt",
+                                                       "steal"
                                                ]
                                        },
                                        options: {
@@ -124,7 +124,7 @@ return baseclass.extend({
                                                },
                                                percent_wait: {
                                                        color: "ffb000",
-                                                       title: "Wait"
+                                                       title: "Wait I/O"
                                                }
                                        }
                                }