- Timestamp:
- Nov 19, 2009 2:57:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMSavedState.cpp
r24793 r24794 1763 1763 static DECLCALLBACK(int) pgmR3LiveVote(PVM pVM, PSSMHANDLE pSSM, uint32_t uPass) 1764 1764 { 1765 /* 1766 * Update and calculate parameters used in the decision making. 1767 */ 1765 1768 const uint32_t cHistoryEntries = RT_ELEMENTS(pVM->pgm.s.LiveSave.acDirtyPagesHistory); 1766 1769 … … 1773 1776 1774 1777 /* calc shortterm average (4 passes). */ 1775 AssertCompile(RT_ELEMENTS(pVM->pgm.s.LiveSave.acDirtyPagesHistory) > =4);1778 AssertCompile(RT_ELEMENTS(pVM->pgm.s.LiveSave.acDirtyPagesHistory) > 4); 1776 1779 uint64_t cTotal = pVM->pgm.s.LiveSave.acDirtyPagesHistory[i]; 1777 1780 cTotal += pVM->pgm.s.LiveSave.acDirtyPagesHistory[(i + cHistoryEntries - 1) % cHistoryEntries];
Note:
See TracChangeset
for help on using the changeset viewer.