mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
system: fix lint in Cpu.js
This commit is contained in:
parent
9f565344b5
commit
962e58c367
@ -106,7 +106,8 @@ export default class Cpu extends BaseWidget {
|
||||
}
|
||||
|
||||
async onMarkupRendered() {
|
||||
const data = await this.ajaxCall('/api/diagnostics/cpu_usage/getcputype');
|
||||
let name = 'getcputype';
|
||||
const data = await this.ajaxCall(`/api/diagnostics/cpu_usage/${name}`);
|
||||
$('.cpu-type').text(data);
|
||||
|
||||
const config = await this.getWidgetConfig();
|
||||
@ -123,7 +124,8 @@ export default class Cpu extends BaseWidget {
|
||||
}
|
||||
});
|
||||
|
||||
super.openEventSource('/api/diagnostics/cpu_usage/stream', (event) => {
|
||||
name = 'stream';
|
||||
super.openEventSource(`/api/diagnostics/cpu_usage/${name}`, (event) => {
|
||||
if (!event) {
|
||||
super.closeEventSource();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user