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:
parent
f1321d6c37
commit
7f383dcc74
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue