Improve wording of message from client to user, to clarify meaning

svn path=/trunk/boinc/; revision=7817
This commit is contained in:
Bruce Allen 2005-09-07 05:44:47 +00:00
parent a30b0472ae
commit c5f0ef7a44
2 changed files with 35 additions and 5 deletions

View File

@ -11437,3 +11437,10 @@ Charlie 6 Sept 2005
mac_build/
boinc.pbproj/
project.pbxproj
Bruce 7 Sept 2005
- Clarify wording of important message from client to user.
client/
scheduler_op.C

View File

@ -231,11 +231,34 @@ int SCHEDULER_OP::start_rpc(PROJECT* p) {
default: why = "Unknown";
}
msg_printf(p, MSG_INFO, "Reason: %s", why);
msg_printf(
p, MSG_INFO,
"Requesting %.0f seconds of work, returning %d results\n",
p->work_request, p->nresults_returned
);
if (p->work_request != 0.0 && p->nresults_returned != 0) {
msg_printf(
p, MSG_INFO,
(p->work_request >= 1.0) ?
"Requesting %.0f seconds of new work, and reporting %d results\n":
"Requesting %g seconds of new work, and reporting %d results\n",
p->work_request, p->nresults_returned
);
} else if (p->work_request != 0) {
msg_printf(
p, MSG_INFO,
(p->work_request >= 1.0) ?
"Requesting %.0f seconds of new work\n":
"Requesting %g seconds of new work\n",
p->work_request
);
} else if (p->nresults_returned != 0) {
msg_printf(
p, MSG_INFO,
"Reporting %d results\n",
p->nresults_returned
);
} else {
msg_printf(
p, MSG_INFO,
"Note: not requesting new work or reporting results\n"
);
}
}
get_sched_request_filename(*p, request_file);