Skip to content

Commit

Permalink
ovirt,openstack: divide pvc size by 100
Browse files Browse the repository at this point in the history
Signed-off-by: Benny Zlotnik <[email protected]>
  • Loading branch information
bennyz authored and ahadas committed Mar 12, 2024
1 parent 040f014 commit de364a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/plan/adapter/openstack/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ func (r *Builder) PopulatorTransferredBytes(persistentVolumeClaim *core.Persiste
}

pvcSize := persistentVolumeClaim.Spec.Resources.Requests["storage"]
transferredBytes = progressPercentage * pvcSize.Value()
transferredBytes = (progressPercentage * pvcSize.Value()) / 100
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/plan/adapter/ovirt/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ func (r *Builder) PopulatorTransferredBytes(pvc *core.PersistentVolumeClaim) (tr
}

pvcSize := pvc.Spec.Resources.Requests["storage"]
transferredBytes = progressPercentage * pvcSize.Value()
transferredBytes = (progressPercentage * pvcSize.Value()) / 100

return
}
Expand Down

0 comments on commit de364a1

Please sign in to comment.