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
--- On Thu, 10/8/09, Klaus Espenlaub <[email protected]> wrote: From: Klaus Espenlaub <[email protected]> Subject: Re: [vbox-dev] VDCopy() fix for VHD, change progress callback percent to float? To: "Huihong Luo" <[email protected]> Cc: [email protected] Date: Thursday, October 8, 2009, 10:12 AM Huihong Luo wrote: > 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 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. Klaus
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
