From 655fd5e429442f574124b12ff0396d9df4d42d2f Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 19 Aug 2013 13:05:57 -0400 Subject: [PATCH] VBOX: Fix trickle-up message passing. (From: Christian Beer) --- samples/vboxwrapper/vboxwrapper.cpp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 8f77f9ee30..b172b2ba3f 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -385,11 +385,6 @@ int main(int argc, char** argv) { vector copy_to_shared; char buf[256]; - memset(&boinc_options, 0, sizeof(boinc_options)); - boinc_options.main_program = true; - boinc_options.check_heartbeat = true; - boinc_options.handle_process_control = true; - boinc_init_options(&boinc_options); for (int i=1; i 0.0) { + fprintf( + stderr, + "%s Feature: Enabling trickle-ups (Interval: %f)\n", + vboxwrapper_msg_prefix(buf, sizeof(buf)), trickle_period + ); + boinc_options.handle_trickle_ups = true; + } + + boinc_init_options(&boinc_options); + // Prepare environment for detecting system conditions // boinc_get_init_data_p(&aid);