VirtualBox

Changeset 24794 in vbox for trunk


Ignore:
Timestamp:
Nov 19, 2009 2:57:48 PM (15 years ago)
Author:
vboxsync
Message:

pgmR3LiveVote: comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMSavedState.cpp

    r24793 r24794  
    17631763static DECLCALLBACK(int)  pgmR3LiveVote(PVM pVM, PSSMHANDLE pSSM, uint32_t uPass)
    17641764{
     1765    /*
     1766     * Update and calculate parameters used in the decision making.
     1767     */
    17651768    const uint32_t cHistoryEntries = RT_ELEMENTS(pVM->pgm.s.LiveSave.acDirtyPagesHistory);
    17661769
     
    17731776
    17741777    /* 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);
    17761779    uint64_t cTotal = pVM->pgm.s.LiveSave.acDirtyPagesHistory[i];
    17771780    cTotal += pVM->pgm.s.LiveSave.acDirtyPagesHistory[(i + cHistoryEntries - 1) % cHistoryEntries];
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