credit bug fix

svn path=/trunk/boinc/; revision=953
This commit is contained in:
Eric Heien 2003-02-20 23:18:31 +00:00
parent d87445eb8e
commit b91eb4522c
1 changed files with 4 additions and 4 deletions

View File

@ -700,9 +700,11 @@ int RESULT::write(FILE* out, bool to_server) {
fprintf(out, fprintf(out,
"<result>\n" "<result>\n"
" <name>%s</name>\n" " <name>%s</name>\n"
" <final_cpu_time>%f</final_cpu_time>\n", " <final_cpu_time>%f</final_cpu_time>\n"
" <state>%d</state>\n",
name, name,
final_cpu_time final_cpu_time,
state
); );
n = strlen(stderr_out); n = strlen(stderr_out);
if (n) { if (n) {
@ -718,10 +720,8 @@ int RESULT::write(FILE* out, bool to_server) {
} }
if (!to_server) { if (!to_server) {
fprintf(out, fprintf(out,
" <state>%d</state>\n"
" <wu_name>%s</wu_name>\n" " <wu_name>%s</wu_name>\n"
" <report_deadline>%d</report_deadline>\n", " <report_deadline>%d</report_deadline>\n",
state,
wu_name, wu_name,
report_deadline report_deadline
); );