VirtualBox

Changeset 18400 in vbox


Ignore:
Timestamp:
Mar 27, 2009 2:24:11 PM (16 years ago)
Author:
vboxsync
Message:

OVF: use capacity instead of populated size as a better approximation for progress weighting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r18395 r18400  
    16141614                                                  hd.ulAddressOnParent);
    16151615                        ULONG ulSize = 0;
    1616                         if (di.iPopulatedSize != -1)
     1616                        if (di.iCapacity != -1)
     1617                            ulSize = (ULONG)(di.iCapacity / _1M);
     1618                        else if (di.iPopulatedSize != -1)
    16171619                            ulSize = (ULONG)(di.iPopulatedSize / _1M);
    16181620                        else if (di.iSize != -1)
    16191621                            ulSize = (ULONG)(di.iSize / _1M);
    1620                         else if (di.iCapacity != -1)
    1621                             ulSize = (ULONG)(di.iCapacity / _1M);
    16221622                        if (ulSize == 0)
    16231623                            ulSize = 10000;         // assume 10 GB, this is for the progress bar only anyway
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette