[vbox-dev] change progress callback percent to float?
huisinro at yahoo.com
Thu Oct 8 12:25:44 PDT 2009
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 <Klaus.Espenlaub at Sun.COM> wrote:
From: Klaus Espenlaub <Klaus.Espenlaub at Sun.COM>
Subject: Re: [vbox-dev] VDCopy() fix for VHD, change progress callback percent to float?
To: "Huihong Luo" <huisinro at yahoo.com>
Cc: vbox-dev at virtualbox.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vbox-dev