InfoBroker: reorder tablles

The order tables appear in the info broker is the order they'll appear 
in the UI.
This commit is contained in:
Starbeamrainbowlabs 2022-03-11 01:38:38 +00:00
parent f1321d6c37
commit 7f383dcc74
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -17,13 +17,14 @@ class InfoBroker {
this.allowed_tables = { this.allowed_tables = {
// name → sysinfo name // name → sysinfo name
cpu: "cpu", // Note that the order here is the order in the web interface
cpu_live: async () => { cpu_live: async () => {
return { return {
frequency: await sysinfo.cpuCurrentSpeed(), frequency: await sysinfo.cpuCurrentSpeed(),
temperature: await sysinfo.cpuTemperature() temperature: await sysinfo.cpuTemperature()
}; };
}, },
cpu: "cpu",
meta: async () => await this.make_table_meta() meta: async () => await this.make_table_meta()
}; };
} }