mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 02:01:19 +00:00
Memory data added
This commit is contained in:
parent
acc41aebe1
commit
61cca78609
@ -128,4 +128,28 @@
|
||||
[subtitleFontSize]="15"
|
||||
></circle-progress>
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Memory total: {{formatBytes(computeStatistics.statistics.memory_total)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Memory used: {{formatBytes(computeStatistics.statistics.memory_used)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Memory free: {{formatBytes(computeStatistics.statistics.memory_free)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Swap total: {{formatBytes(computeStatistics.statistics.swap_total)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Swap used: {{formatBytes(computeStatistics.statistics.swap_used)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
<mat-chip-list>
|
||||
<mat-chip color="primary" selected>Swap free: {{formatBytes(computeStatistics.statistics.swap_free)}}</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
</mat-card>
|
||||
|
@ -2,4 +2,5 @@
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
@ -12,9 +12,7 @@ export class StatusChartComponent implements OnInit {
|
||||
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
// console.log('Memory total ', this.formatBytes(this.computeStatistics.statistics.memory_total));
|
||||
}
|
||||
ngOnInit() {}
|
||||
|
||||
formatBytes(bytes, decimals = 2) {
|
||||
if (bytes === 0) return '0 Bytes';
|
||||
|
@ -22,7 +22,8 @@ import {
|
||||
MatGridListModule,
|
||||
MatTabsModule,
|
||||
MatTreeModule,
|
||||
MatBottomSheetModule
|
||||
MatBottomSheetModule,
|
||||
MatChipsModule
|
||||
} from '@angular/material';
|
||||
|
||||
export const MATERIAL_IMPORTS = [
|
||||
@ -49,5 +50,6 @@ export const MATERIAL_IMPORTS = [
|
||||
MatGridListModule,
|
||||
MatTabsModule,
|
||||
MatTreeModule,
|
||||
MatBottomSheetModule
|
||||
MatBottomSheetModule,
|
||||
MatChipsModule
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user