Changeset 47919 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 20, 2013 2:14:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r44528 r47919 175 175 * little bit more, i.e. the weight is the sum of the data which 176 176 * needs to be read and written. */ 177 uint64_t uMaxSize= 0;177 ULONG uMaxWeight = 0; 178 178 for (size_t e = mtc.chain.size(); e > 0; --e) 179 179 { 180 180 MEDIUMTASK &mt = mtc.chain.at(e - 1); 181 mt.uWeight += uMax Size;181 mt.uWeight += uMaxWeight; 182 182 183 183 /* Calculate progress data */ … … 187 187 /* Save the max size for better weighting of diff image 188 188 * creation. */ 189 uMax Size = RT_MAX(uMaxSize, mt.uWeight);189 uMaxWeight = RT_MAX(uMaxWeight, mt.uWeight); 190 190 } 191 191 } … … 208 208 /* same rule as above: count both the data which needs to 209 209 * be read and written */ 210 sst.uWeight = 2 * (cbSize + _1M - 1) / _1M;210 sst.uWeight = (ULONG)(2 * (cbSize + _1M - 1) / _1M); 211 211 llSaveStateFiles.append(sst); 212 212 ++uCount; … … 290 290 mt.uWeight = 0; /* dummy */ 291 291 else 292 mt.uWeight = ( lSize + _1M - 1) / _1M;292 mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M); 293 293 mtc.chain.append(mt); 294 294 … … 390 390 mt.uIdx = UINT32_MAX; 391 391 mt.pMedium = pSrcMedium; 392 mt.uWeight = ( lSize + _1M - 1) / _1M;392 mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M); 393 393 mtc.chain.append(mt); 394 394 … … 524 524 mt.uIdx = UINT32_MAX; 525 525 mt.pMedium = pSrcMedium; 526 mt.uWeight = ( lSize + _1M - 1) / _1M;526 mt.uWeight = (ULONG)((lSize + _1M - 1) / _1M); 527 527 mtc.chain.append(mt); 528 528
Note:
See TracChangeset
for help on using the changeset viewer.