Increased precision in displaying progress of transferred disk data.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2020-11-25 15:36:17 +00:00
parent 719d6b5e45
commit 2469c947c9
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ namespace XenAdmin.Actions.OvfActions
HTTP_actions.get_export_raw_vdi(b =>
{
Description = string.Format(Messages.EXPORTING_VDI, diskName, diskFilename,
Util.DiskSizeString(b, 1, "F1"), Util.DiskSizeString(vdi.virtual_size));
Util.DiskSizeString(b, 2, "F2"), Util.DiskSizeString(vdi.virtual_size));
updatePercentage((curVbd + (float)b / vdi.virtual_size) / vbdRefs.Count);
},
() => Cancelling, XenAdminConfigManager.Provider.GetProxyTimeout(true),

View File

@ -424,7 +424,7 @@ namespace XenAdmin.Actions.OvfActions
b =>
{
Description = string.Format(Messages.IMPORT_VDI, filename,
Util.DiskSizeString(b, 1, "F1"), Util.DiskSizeString(dataCapacity));
Util.DiskSizeString(b, 2, "F2"), Util.DiskSizeString(dataCapacity));
updatePercentage((float)b / dataCapacity);
},