VirtualBox

Changeset 46446 in vbox


Ignore:
Timestamp:
Jun 7, 2013 7:00:51 PM (11 years ago)
Author:
vboxsync
Message:

Guest::updateStats: Note on using STAMR3Enum like that...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestImpl.cpp

    r45674 r46446  
    200200{
    201201    PSTAMCOUNTER pCnt = (PSTAMCOUNTER)pvSample;
    202     char *pszEnd = strrchr((char*)pszName, '/');
     202    const char *pszEnd = strrchr(pszName, '/');
    203203    if (pszEnd)
    204204    {
     
    298298        uint64_t uTxPrev = mNetStatTx;
    299299        mNetStatRx = mNetStatTx = 0;
     300        /** @todo This can be really expensive as well as horribly wrong! */
    300301        rc = STAMR3Enum(ptrVM.rawUVM(), "*/ReceiveBytes|*/TransmitBytes", staticEnumStatsCallback, this);
    301302        AssertRC(rc);
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