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
1 changed files with 2 additions and 1 deletions

View File

@ -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()
};
}