Changeset 80654 in vbox
- Timestamp:
- Sep 8, 2019 11:51:15 PM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
-
include/GuestImpl.h (modified) (1 diff)
-
src-client/GuestImpl.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestImpl.h
r79296 r80654 220 220 221 221 ULONG mMemoryBalloonSize; 222 ULONG mStatUpdateInterval; 222 ULONG mStatUpdateInterval; /**< In seconds. */ 223 223 uint64_t mNetStatRx; 224 224 uint64_t mNetStatTx; -
trunk/src/VBox/Main/src-client/GuestImpl.cpp
r79294 r80654 108 108 109 109 mMagic = GUEST_MAGIC; 110 int vrc = RTTimerLRCreate(&mStatTimer, 1000 /* ms */, 111 &Guest::i_staticUpdateStats, this); 110 int vrc = RTTimerLRCreateEx(&mStatTimer, RT_NS_1SEC, 0 /*fFlags*/, &Guest::i_staticUpdateStats, this); 112 111 AssertMsgRC(vrc, ("Failed to create guest statistics update timer (%Rrc) - ignored\n", vrc)); 113 112 … … 628 627 629 628 if (mStatUpdateInterval) 629 { 630 630 if (aStatisticsUpdateInterval == 0) 631 631 RTTimerLRStop(mStatTimer); 632 632 else 633 RTTimerLRChangeInterval(mStatTimer, aStatisticsUpdateInterval );634 else635 if (aStatisticsUpdateInterval != 0)636 {637 RTTimerLRChangeInterval(mStatTimer, aStatisticsUpdateInterval);638 RTTimerLRStart(mStatTimer, 0);639 }633 RTTimerLRChangeInterval(mStatTimer, aStatisticsUpdateInterval * RT_NS_1SEC_64); 634 } 635 else if (aStatisticsUpdateInterval != 0) 636 { 637 RTTimerLRChangeInterval(mStatTimer, aStatisticsUpdateInterval * RT_NS_1SEC_64); 638 RTTimerLRStart(mStatTimer, 0); 639 } 640 640 mStatUpdateInterval = aStatisticsUpdateInterval; 641 /* forward the information to the VMM device */ 641 642 /* Forward the information to the VMM device. 643 MUST release all locks before calling VMM device as its critsect 644 has higher lock order than anything in Main. */ 642 645 VMMDev *pVMMDev = mParent->i_getVMMDev(); 643 /* MUST release all locks before calling VMM device as its critsect644 * has higher lock order than anything in Main. */645 646 alock.release(); 646 647 if (pVMMDev)
Note:
See TracChangeset
for help on using the changeset viewer.

