From db00158cb06d653134b0dbb3381ccf7bccff921b Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sat, 27 Oct 2012 17:26:32 -0400 Subject: [PATCH] - VBOX: Increase elapsed_time if we were forced to sleep after executing the main loop --- checkin_notes | 7 +++++++ samples/vboxwrapper/vboxwrapper.cpp | 1 + 2 files changed, 8 insertions(+) diff --git a/checkin_notes b/checkin_notes index 5a87e37392..c215caf98c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 + \ No newline at end of file diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index f864960ac7..b1a9dcb8db 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/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; } }