Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
  • Loading branch information
yaroslavborbat committed Sep 17, 2024
1 parent 3f2d886 commit 48cd193
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ func (s DiskService) GetProgress(dv *cdiv1.DataVolume, prevProgress string, opts

func (s DiskService) GetCapacity(pvc *corev1.PersistentVolumeClaim) string {
if pvc != nil && pvc.Status.Phase == corev1.ClaimBound {
return util.GetPointer(pvc.Status.Capacity[corev1.ResourceStorage]).String()
quantity := pvc.Status.Capacity[corev1.ResourceStorage]
return util.HumanizeIBytes(uint64(quantity.Value()))
}

return ""
}

Expand Down

0 comments on commit 48cd193

Please sign in to comment.