From 7f383dcc74c93a1bb4bac9829557dee98e527624 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 11 Mar 2022 01:38:38 +0000 Subject: [PATCH] InfoBroker: reorder tablles The order tables appear in the info broker is the order they'll appear in the UI. --- src/lib/core/InfoBroker.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/core/InfoBroker.mjs b/src/lib/core/InfoBroker.mjs index e56098e..bfdc971 100644 --- a/src/lib/core/InfoBroker.mjs +++ b/src/lib/core/InfoBroker.mjs @@ -17,13 +17,14 @@ class InfoBroker { this.allowed_tables = { // name → sysinfo name - cpu: "cpu", + // Note that the order here is the order in the web interface cpu_live: async () => { return { frequency: await sysinfo.cpuCurrentSpeed(), temperature: await sysinfo.cpuTemperature() }; }, + cpu: "cpu", meta: async () => await this.make_table_meta() }; }