VirtualBox

Changeset 29989 in vbox for trunk


Ignore:
Timestamp:
Jun 2, 2010 12:46:49 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62284
Message:

Main/ProgressImpl: be a bit more precise here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r29924 r29989  
    331331            uint64_t ullTimeNow = RTTimeMilliTS();
    332332            uint64_t ullTimeElapsed = ullTimeNow - m_ullTimestamp;
    333             uint64_t ullTimeTotal = (uint64_t)(ullTimeElapsed / dPercentDone * 100);
     333            uint64_t ullTimeTotal = (uint64_t)(ullTimeElapsed * 100 / dPercentDone);
    334334            uint64_t ullTimeRemaining = ullTimeTotal - ullTimeElapsed;
    335335
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette