mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
don't need this check
This commit is contained in:
1 parent
cb23cdf343
commit
603099dc33
1 file changed
-10
@@ -11,20 +11,10 @@ const raidRequirements = computed(() => raidCalculations[raidType.value].require
|
||||
const inputsValid = computed(() => validateSetup());
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user