Changeset 99604 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- May 4, 2023 1:53:06 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/ovfreader.cpp
r99523 r99604 521 521 522 522 case ResourceType_Memory: // 4 523 /* It's alway stored in bytes in VSD according to the old internal agreement within the team */ 523 524 if ( i.strAllocationUnits == "MegaBytes" // found in OVF created by OVF toolkit 524 525 || i.strAllocationUnits == "MB" // found in MS docs 525 526 || i.strAllocationUnits == "byte * 2^20" // suggested by OVF spec DSP0243 page 21 526 527 ) 527 vsys.ullMemorySize = i.ullVirtualQuantity ;528 vsys.ullMemorySize = i.ullVirtualQuantity * _1M; 528 529 else if ( i.strAllocationUnits == "GigaBytes" 529 530 || i.strAllocationUnits == "GB" 530 531 || i.strAllocationUnits == "byte * 2^30" 531 532 ) 532 vsys.ullMemorySize = i.ullVirtualQuantity /_1K;//back to MB533 vsys.ullMemorySize = i.ullVirtualQuantity * _1G; 533 534 else 534 535 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.