fixes to my last checkin

svn path=/trunk/boinc/; revision=18533
This commit is contained in:
David Anderson 2009-06-30 20:42:25 +00:00
parent 7546b0fe72
commit 6a513e76a7
3 changed files with 8 additions and 3 deletions

View File

@ -1644,7 +1644,7 @@ int RESULT::write(MIOFILE& out, bool to_server) {
if (suspended_via_gui) out.printf(" <suspended_via_gui/>\n");
out.printf(
" <wu_name>%s</wu_name>\n"
" <report_deadline>%f</report_deadline>\n",
" <report_deadline>%f</report_deadline>\n"
" <received_time>%f</received_time>\n",
wu_name,
report_deadline,
@ -1672,6 +1672,7 @@ int RESULT::write_gui(MIOFILE& out) {
" <exit_status>%d</exit_status>\n"
" <state>%d</state>\n"
" <report_deadline>%f</report_deadline>\n"
" <received_time>%f</received_time>\n"
" <estimated_cpu_time_remaining>%f</estimated_cpu_time_remaining>\n",
name,
wu_name,
@ -1683,6 +1684,7 @@ int RESULT::write_gui(MIOFILE& out) {
exit_status,
state(),
report_deadline,
received_time,
estimated_time_remaining(false)
);
if (got_server_ack) out.printf(" <got_server_ack/>\n");

View File

@ -167,8 +167,10 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
addProperty(_("Application"), FormatApplicationName(result));
addProperty(_("Workunit name"),wxString(result->wu_name.c_str(),wxConvUTF8));
addProperty(_("State"), FormatStatus(result));
dt.Set((time_t)result->received_time);
addProperty(_("Received"), dt.Format());
if (result->received_time) {
dt.Set((time_t)result->received_time);
addProperty(_("Received"), dt.Format());
}
dt.Set((time_t)result->report_deadline);
addProperty(_("Report deadline"), dt.Format());
if (result->resources.size()) {

View File

@ -474,6 +474,7 @@ void RESULT::clear() {
graphics_exec_path.clear();
slot_path.clear();
report_deadline = 0;
received_time = 0;
ready_to_report = false;
got_server_ack = false;
final_cpu_time = 0;