mirror of https://github.com/BOINC/boinc.git
VBOX: Add a trickle-up status report entry to stderr.txt every time we send a trickle event.
This commit is contained in:
parent
8f11da3bc3
commit
9f7fafa1f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue