ui: Consider overprovisioning factor when displaying allocated progress bar (#4850)

This commit is contained in:
davidjumani 2021-03-23 19:24:50 +05:30 committed by GitHub
parent eaefc2a69f
commit bd79e1a9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@
<a-progress
class="progress-bar"
size="small"
:percent="Number(parseFloat(100.0 * parseFloat(resource.disksizeallocatedgb) / parseFloat(resource.disksizetotalgb)).toFixed(2))"
:percent="Number(parseFloat(100.0 * parseFloat(resource.disksizeallocatedgb) / (parseFloat(resource.disksizetotalgb) *
(parseFloat(resource.overprovisionfactor) || 1.0))).toFixed(2))"
:format="(percent, successPercent) => parseFloat(percent).toFixed(2) + '% ' + $t('label.disksizeallocatedgb')" />
</span>
</div>