anmolbabu has uploaded a new change for review. Change subject: engine : Case correction of Units of Total Size Moved ......................................................................
engine : Case correction of Units of Total Size Moved Tasks pane displays the units of Total Size Moved in capital letters. This patch changes BYTES to Bytes while displaying in task pane Also it remove the comma in the magnitude of total size moved. Change-Id: If06014f67a89056c22db896601ad9e51e4e32ed5 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1043487 Signed-off-by: Anmol Babu <anb...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/tasks/GlusterTaskUtils.java 1 file changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/95/33795/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/tasks/GlusterTaskUtils.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/tasks/GlusterTaskUtils.java index 8e3de2b..0be4864 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/tasks/GlusterTaskUtils.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/tasks/GlusterTaskUtils.java @@ -266,6 +266,7 @@ public String getSummaryMessage(GlusterVolumeTaskStatusDetail statusSummary) { NumberFormat formatSize = NumberFormat.getInstance(); + formatSize.setGroupingUsed(false); formatSize.setMaximumFractionDigits(2); formatSize.setMinimumFractionDigits(2); Pair<SizeConverter.SizeUnit, Double> sizeMoved = @@ -279,8 +280,12 @@ .append(statusSummary.getFilesFailed()) .append(", Total size moved: ") .append(new StringBuilder(formatSize.format(sizeMoved.getSecond().doubleValue())) - .append(" ") - .append(sizeMoved.getFirst().toString())); + .append(" ")); + if(sizeMoved.getFirst() == SizeUnit.BYTES) { + builder.append("Bytes"); + } else { + builder.append(sizeMoved.getFirst().toString()); + } return builder.toString(); } } -- To view, visit http://gerrit.ovirt.org/33795 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If06014f67a89056c22db896601ad9e51e4e32ed5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: anmolbabu <anb...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches