VirtualBox

Changeset 2875 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 25, 2007 2:44:16 PM (18 years ago)
Author:
vboxsync
Message:

Fix delta calculation.

File:
1 edited

Legend:

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

    r2872 r2875  
    35453545        uint64_t uNow = RTTimeNanoTS();
    35463546        if (pCtl->aIfs[0].u64CmdTS)
    3547             uCmdWait0 = (pCtl->aIfs[0].u64CmdTS - uNow) / 1000;
     3547            uCmdWait0 = (uNow - pCtl->aIfs[0].u64CmdTS) / 1000;
    35483548        if (pCtl->aIfs[1].u64CmdTS)
    3549             uCmdWait1 = (pCtl->aIfs[1].u64CmdTS - uNow) / 1000;
     3549            uCmdWait1 = (uNow - pCtl->aIfs[1].u64CmdTS) / 1000;
    35503550        LogRel(("PIIX3 ATA: Ctl#%d: RESET, DevSel=%d AIOIf=%d CmdIf0=%#04x (%d usec ago) CmdIf1=%#04x (%d usec ago)\n",
    35513551                    ATACONTROLLER_IDX(pCtl), pCtl->iSelectedIf, pCtl->iAIOIf,
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