mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 13:29:13 -04:00
don't need this check
This commit is contained in:
parent
cb23cdf343
commit
603099dc33
1 changed files with 0 additions and 10 deletions
|
@ -11,20 +11,10 @@ const raidRequirements = computed(() => raidCalculations[raidType.value].require
|
||||||
const inputsValid = computed(() => validateSetup());
|
const inputsValid = computed(() => validateSetup());
|
||||||
|
|
||||||
const calculatedCapacity = computed(() => {
|
const calculatedCapacity = computed(() => {
|
||||||
// make sure values exist
|
|
||||||
if (diskTotal.value === undefined || diskSize.value === undefined) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
return formatBytes(raidCalculations[raidType.value].capacity(diskTotal.value, diskSize.value, diskUnit.value), 2, UNIT_BASE.BASE_10);
|
return formatBytes(raidCalculations[raidType.value].capacity(diskTotal.value, diskSize.value, diskUnit.value), 2, UNIT_BASE.BASE_10);
|
||||||
});
|
});
|
||||||
|
|
||||||
const calculatedFaultTolerance = computed(() => {
|
const calculatedFaultTolerance = computed(() => {
|
||||||
// make sure values exist
|
|
||||||
if (diskTotal.value === undefined || diskSize.value === undefined) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
return raidCalculations[raidType.value].fault(diskTotal.value, diskSize.value, diskUnit.value);
|
return raidCalculations[raidType.value].fault(diskTotal.value, diskSize.value, diskUnit.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue