VirtualBox

Changeset 5278 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2007 7:38:37 PM (17 years ago)
Author:
vboxsync
Message:

Cap the VDI progress at 99% letting the main code do the final %.

File:
1 edited

Legend:

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

    r5236 r5278  
    8181    Progress *progress = static_cast <Progress *> (pvUser);
    8282
    83     /* update the progress object */
     83    /* update the progress object, capping it at 99% as the final percent
     84     * is used for additional operations like setting the UUIDs and similar. */
    8485    if (progress)
    85         progress->notifyProgress (uPercent);
     86        progress->notifyProgress (RT_MIN(uPercent, 99));
    8687
    8788    return VINF_SUCCESS;
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