Refactor Global Status component to remove unnecessary console logs and clean up disk usage chart data handling
testing/ogGui-multibranch/pipeline/head Something is wrong with the build of this commit
Details
testing/ogGui-multibranch/pipeline/head Something is wrong with the build of this commit
Details
parent
bb31acb4cc
commit
a9dd983f53
|
@ -47,16 +47,10 @@ export class GlobalStatusComponent implements OnInit {
|
||||||
this.ogBootSubnets = data.message.subnets;
|
this.ogBootSubnets = data.message.subnets;
|
||||||
this.ogBootServicesStatus = data.message.services_status;
|
this.ogBootServicesStatus = data.message.services_status;
|
||||||
this.installedOgLives = data.message.installed_oglives;
|
this.installedOgLives = data.message.installed_oglives;
|
||||||
|
|
||||||
// Actualizar los datos de la gráfica
|
|
||||||
this.diskUsageChartData = [
|
this.diskUsageChartData = [
|
||||||
{ name: 'Usado', value: parseFloat(this.ogBootDiskUsage.used) },
|
{ name: 'Usado', value: parseFloat(this.ogBootDiskUsage.used) },
|
||||||
{ name: 'Disponible', value: parseFloat(this.ogBootDiskUsage.available) }
|
{ name: 'Disponible', value: parseFloat(this.ogBootDiskUsage.available) }
|
||||||
];
|
];
|
||||||
|
|
||||||
console.log('Disk Usage Chart Data:', this.diskUsageChartData);
|
|
||||||
console.log('Services Status:', this.ogBootServicesStatus);
|
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
error: error => {
|
error: error => {
|
||||||
|
@ -81,7 +75,6 @@ export class GlobalStatusComponent implements OnInit {
|
||||||
name: key,
|
name: key,
|
||||||
status: this.ogBootServicesStatus[key]
|
status: this.ogBootServicesStatus[key]
|
||||||
}))
|
}))
|
||||||
console.log(services);
|
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue