mirror of https://github.com/BOINC/boinc.git
- VBOX: Increase elapsed_time if we were forced to sleep after executing the main loop
This commit is contained in:
parent
14948c99f6
commit
db00158cb0
|
@ -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
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue