mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
fix: align all memory / storage / quota units to Gi/Mi
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
memoryUnits() {
|
||||
const exponent = exponentNeeded(this.memoryTotal, 1024);
|
||||
|
||||
return `${ UNITS[exponent] }iB`;
|
||||
return `${ UNITS[exponent] }i`;
|
||||
},
|
||||
|
||||
node() {
|
||||
|
||||
@@ -75,13 +75,13 @@ export default {
|
||||
allocatedUnits() {
|
||||
const exponent = exponentNeeded(this.storageStats.total, 1024);
|
||||
|
||||
return `${ UNITS[exponent] }iB`;
|
||||
return `${ UNITS[exponent] }i`;
|
||||
},
|
||||
|
||||
usedUnits() {
|
||||
const exponent = exponentNeeded(this.storageStats.maximum, 1024);
|
||||
|
||||
return `${ UNITS[exponent] }iB`;
|
||||
return `${ UNITS[exponent] }i`;
|
||||
},
|
||||
|
||||
formatUsed() {
|
||||
|
||||
Reference in New Issue
Block a user