<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">That's correct observation, but I am proposing a very simple fix for the 1st 1% to show up on progress bar, etc. If changing the arg to float, then I can at aleast know how many bytes has transfered at the begining, instead of 0. Another way is to send back the total bytes transfered, instead of percentage<BR><BR>--- On <B>Thu, 10/8/09, Klaus Espenlaub <I><Klaus.Espenlaub@Sun.COM></I></B> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Klaus Espenlaub <Klaus.Espenlaub@Sun.COM><BR>Subject: Re: [vbox-dev] VDCopy() fix for VHD, change progress callback percent to float?<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org<BR>Date: Thursday, October 8, 2009, 10:12 AM<BR><BR>
<DIV class=plainMail>Huihong Luo wrote:<BR>> a related issue, wonder if you like the idea of changing VDCopy callbacks to float/double percentage? right now, it's an int, the 1st 1% may takes more than 3 mins, not user friendly to update the progress bar<BR><BR>The progress bar _is_ linear with the offset in the target image. The non-linearity you might observe is most likely a side-effect of dynamic images. Reading/writing them is extremely fast if there is just zeroes in a certain area. Any good ideas how to address this in an image format independent way would be highly appreciated.<BR><BR>Klaus<BR></DIV></BLOCKQUOTE></td></tr></table>