- VBOX: Increase elapsed_time if we were forced to sleep after executing the main loop

This commit is contained in:
Rom Walton 2012-10-27 17:26:32 -04:00 committed by Oliver Bock
parent 14948c99f6
commit db00158cb0
2 changed files with 8 additions and 0 deletions

View File

@ -6402,3 +6402,10 @@ Rom 27 Oct 2012
samples\vboxwrapper\
vboxwrapper.cpp
Rom 27 Oct 2012
- VBOX: Increase elapsed_time if we were forced to sleep after executing the main loop
samples\vboxwrapper\
vboxwrapper.cpp

View File

@ -802,6 +802,7 @@ int main(int argc, char** argv) {
sleep_time = POLL_PERIOD - (stopwatch_endtime - stopwatch_time);
if (sleep_time > 0) {
boinc_sleep(sleep_time);
elapsed_time += sleep_time;
}
}