VirtualBox

Ignore:
Timestamp:
Aug 5, 2010 7:44:08 AM (14 years ago)
Author:
vboxsync
Message:

VBoxManageGuestCtrl: warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r31070 r31381  
    339339                {
    340340                    /* Calculate timeout value left after process has been started.  */
    341                     uint64_t u64Diff = RTTimeMilliTS() - u64StartMS;
    342                     /** @todo Check for uint64_t vs. uint32_t here! */
    343                     if (u32TimeoutMS > u64Diff) /* Is timeout still bigger than current difference? */
    344                     {
    345                         u32TimeoutMS = u32TimeoutMS - u64Diff;
     341                    uint64_t u64Elapsed = RTTimeMilliTS() - u64StartMS;
     342                    /* Is timeout still bigger than current difference? */
     343                    if (u32TimeoutMS > u64Elapsed)
     344                    {
     345                        u32TimeoutMS -= (uint32_t)u64Elapsed;
    346346                        if (fVerbose)
    347347                            RTPrintf("Waiting for process to exit (%ums left) ...\n", u32TimeoutMS);
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