Compare commits
No commits in common. "35bb0e6e62dbe8367270636422b9dcace5de7ec5" and "a6ce1ee4cf324fab64bd37cf395eb710f37f7a0b" have entirely different histories.
35bb0e6e62
...
a6ce1ee4cf
|
@ -109,8 +109,8 @@ export class PartitionAssistantComponent implements OnInit{
|
|||
this.http.get(url).subscribe(
|
||||
(response) => {
|
||||
this.data = response;
|
||||
this.partitionCode = this.data.partitions[0].partitionCode;
|
||||
this.initializeDisks();
|
||||
this.partitionCode = this.data.partitions[0].partitionCode;
|
||||
},
|
||||
(error) => {
|
||||
console.error('Error al cargar los datos del cliente:', error);
|
||||
|
@ -160,11 +160,11 @@ export class PartitionAssistantComponent implements OnInit{
|
|||
disk!.partitions.push({
|
||||
uuid: partition.uuid,
|
||||
partitionNumber: partition.partitionNumber,
|
||||
size: this.convertBytesToGB(partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 512 : partition.size),
|
||||
size: this.convertBytesToGB(partition.size),
|
||||
memoryUsage: partition.memoryUsage,
|
||||
partitionCode: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 'EFI' : partition.partitionCode,
|
||||
partitionCode: partition.partitionCode,
|
||||
filesystem: partition.filesystem,
|
||||
sizeBytes: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 512 : partition.size,
|
||||
sizeBytes: partition.size,
|
||||
format: false,
|
||||
color: '#1f1b91',
|
||||
percentage: 0,
|
||||
|
@ -254,6 +254,8 @@ export class PartitionAssistantComponent implements OnInit{
|
|||
|
||||
if (disk) {
|
||||
const remainingGB = this.getRemainingGB(disk.partitions, disk.totalDiskSize);
|
||||
console.log('Remaining GB:', remainingGB);
|
||||
console.log('Total Disk Size:', disk);
|
||||
|
||||
if (remainingGB > 0) {
|
||||
const removedPartitions = disk.partitions.filter((p) => !p.removed);
|
||||
|
|
Loading…
Reference in New Issue