Skip to content

Commit

Permalink
Fix TenantCapacity usage (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
allanrogerr authored Jun 26, 2024
1 parent 7ff26c0 commit 52137a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ const SummaryUsageBar = ({
) : (
<TenantCapacityMain>
<TenantCapacity
totalCapacity={tenant.status?.usage?.raw || 0}
totalCapacity={
(tenant.status?.usage?.capacity || 0) +
(tenant.status?.usage?.capacity_usage || 0)
}
usedSpaceVariants={spaceVariants}
statusClass={""}
render={"bar"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ const TenantListItem = ({ tenant }: { tenant: TenantList }) => {
<Grid container>
<Grid item xs={2}>
<TenantCapacity
totalCapacity={tenant.capacity || 0}
totalCapacity={
(tenant.capacity || 0) + (tenant.capacity_usage || 0)
}
usedSpaceVariants={spaceVariants}
statusClass={healthStatusToClass(tenant.health_status!)}
/>
Expand Down

0 comments on commit 52137a2

Please sign in to comment.