VirtualBox

Changeset 64838 in vbox


Ignore:
Timestamp:
Dec 12, 2016 5:31:20 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Storage/DrvVD: Missing places to account for read/written bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r64835 r64838  
    19511951    {
    19521952        STAM_REL_COUNTER_INC(&pThis->StatReqsSucceeded);
     1953        STAM_REL_COUNTER_ADD(&pThis->StatBytesRead, cbRead);
    19531954        Log2(("%s: off=%#llx pvBuf=%p cbRead=%d\n%.*Rhxd\n", __FUNCTION__,
    19541955              off, pvBuf, cbRead, cbRead, pvBuf));
     
    20752076
    20762077    if (RT_SUCCESS(rc))
     2078    {
    20772079        STAM_REL_COUNTER_INC(&pThis->StatReqsSucceeded);
     2080        STAM_REL_COUNTER_ADD(&pThis->StatBytesWritten, cbWrite);
     2081    }
    20782082    else
    20792083        STAM_REL_COUNTER_INC(&pThis->StatReqsFailed);
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