VirtualBox

Ignore:
Timestamp:
Oct 12, 2010 12:17:49 PM (14 years ago)
Author:
vboxsync
Message:

Main;OVF/OVA: online calculation of the SHA1 sum; directly stream into the ova (no temporary files anymore); cache writing

File:
1 edited

Legend:

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

    r32718 r33060  
    678678            break;
    679679        }
    680         /* Check if the current operation have changed. It is also possible
     680        /* Check if the current operation has changed. It is also possible
    681681           that in the meantime more than one async operation was finished. So
    682682           we have to loop as long as we reached the same operation count. */
     
    843843        case WriteFile:
    844844        {
    845             // assume that creating the manifest will take 10% of the time it takes to export the disks
     845            // assume that creating the manifest will take .1% of the time it takes to export the disks
    846846            if (m->fManifest)
    847847            {
    848848                ++cOperations;          // another one for creating the manifest
    849849
    850                 m->ulWeightForManifestOperation = m->ulTotalDisksMB / 10;
     850                m->ulWeightForManifestOperation = (ULONG)((double)m->ulTotalDisksMB * .1 / 100);    // use .5% of the progress for the manifest
    851851                ulTotalOperationsWeight += m->ulWeightForManifestOperation;
    852             }
    853             if (fOVA)
    854             {
    855                 // Another operation for packing
    856                 ++cOperations;
    857 
    858                 // assume that packing the files into the archive has the same weight than creating all files in the ovf exporting step
    859                 ulTotalOperationsWeight += m->ulTotalDisksMB;
    860852            }
    861853            break;
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