VBOX: Add a trickle-up status report entry to stderr.txt every time we send a trickle event.

This commit is contained in:
Rom Walton 2013-11-06 15:45:58 -05:00
parent 8f11da3bc3
commit 9f7fafa1f3
1 changed files with 5 additions and 0 deletions

View File

@ -885,6 +885,11 @@ int main(int argc, char** argv) {
if (trickle_period) {
trickle_cpu_time += POLL_PERIOD;
if (trickle_cpu_time >= trickle_period) {
fprintf(
stderr,
"%s Status Report: Send Trickle-Up Event.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
sprintf(buf, "<cpu_time>%f</cpu_time>", trickle_cpu_time);
boinc_send_trickle_up(const_cast<char*>("cpu_time"), buf);
trickle_cpu_time = 0;