VirtualBox

Changeset 99523 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Apr 24, 2023 2:44:16 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157024
Message:

bugref:10314. Reverted back r154561 partially. RAM unit is MB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/ovfreader.cpp

    r98103 r99523  
    525525                             || i.strAllocationUnits == "byte * 2^20"         // suggested by OVF spec DSP0243 page 21
    526526                           )
    527                             vsys.ullMemorySize = i.ullVirtualQuantity * _1M;
     527                            vsys.ullMemorySize = i.ullVirtualQuantity;
     528                        else if ( i.strAllocationUnits == "GigaBytes"
     529                                  || i.strAllocationUnits == "GB"
     530                                  || i.strAllocationUnits == "byte * 2^30"
     531                           )
     532                            vsys.ullMemorySize = i.ullVirtualQuantity/_1K;//back to MB
    528533                        else
    529534                            throw OVFLogicError(N_("Error reading \"%s\": Invalid allocation unit \"%s\" specified with memory size item, line %d"),
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