From e6a87070f39142e2643129a316238871154d5fe3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 3 Dec 2008 17:50:44 +0000 Subject: [PATCH] - manager: in task properties, display elapsed time if available, and replace "estimated CPU time remaining" with "estimated time remaining" svn path=/trunk/boinc/; revision=16604 --- checkin_notes | 10 ++++++++++ clientgui/DlgItemProperties.cpp | 11 +++++++---- lib/gui_rpc_client.h | 1 + lib/gui_rpc_client_ops.cpp | 10 ++++++---- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9ed05b0a36..a4510bead2 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9788,3 +9788,13 @@ David 2 Dec 2008 cpu_sched.cpp cs_apps.cpp work_fetch.cpp + +David 3 Dec 2008 + - manager: in task properties, display elapsed time if available, + and replace "estimated CPU time remaining" with "estimated time remaining" + + clientgui/ + DltItemProperties.cpp + lib/ + gui_rpc_client.h + gui_rpc_client_ops.cpp diff --git a/clientgui/DlgItemProperties.cpp b/clientgui/DlgItemProperties.cpp index 2226c828c9..9a6c0bf43e 100755 --- a/clientgui/DlgItemProperties.cpp +++ b/clientgui/DlgItemProperties.cpp @@ -155,10 +155,13 @@ void CDlgItemProperties::renderInfos(RESULT* result) { addProperty(_("Resources"), wxString(result->resources.c_str(), wxConvUTF8)); } if (result->active_task) { - addProperty(_("Checkpoint CPU time"), FormatTime(result->checkpoint_cpu_time)); - addProperty(_("Current CPU time"), FormatTime(result->current_cpu_time)); - addProperty(_("Estimated CPU time remaining"),FormatTime(result->estimated_cpu_time_remaining)); - addProperty(_("Fraction done"),wxString::Format(wxT("%.3f %%"),floor(result->fraction_done * 100000)/1000)); + addProperty(_("CPU time at last checkpoint"), FormatTime(result->checkpoint_cpu_time)); + addProperty(_("CPU time"), FormatTime(result->current_cpu_time)); + if (result->elapsed_time >= 0) { + addProperty(_("Elapsed time"), FormatTime(result->elapsed_time)); + } + addProperty(_("Estimated time remaining"), FormatTime(result->estimated_cpu_time_remaining)); + addProperty(_("Fraction done"), wxString::Format(wxT("%.3f %%"), result->fraction_done*100)); addProperty(_("Virtual memory size"), FormatDiskSpace(result->swap_size)); addProperty(_("Working set size"), FormatDiskSpace(result->working_set_size_smoothed)); } diff --git a/lib/gui_rpc_client.h b/lib/gui_rpc_client.h index f6088702e1..91de36df88 100644 --- a/lib/gui_rpc_client.h +++ b/lib/gui_rpc_client.h @@ -205,6 +205,7 @@ public: double checkpoint_cpu_time; double current_cpu_time; double fraction_done; + double elapsed_time; double swap_size; double working_set_size_smoothed; double estimated_cpu_time_remaining; diff --git a/lib/gui_rpc_client_ops.cpp b/lib/gui_rpc_client_ops.cpp index 15d52b1e53..0c5422cb37 100644 --- a/lib/gui_rpc_client_ops.cpp +++ b/lib/gui_rpc_client_ops.cpp @@ -337,10 +337,10 @@ void WORKUNIT::clear() { name.clear(); app_name.clear(); version_num = 0; - rsc_fpops_est = 0.0; - rsc_fpops_bound = 0.0; - rsc_memory_bound = 0.0; - rsc_disk_bound = 0.0; + rsc_fpops_est = 0; + rsc_fpops_bound = 0; + rsc_memory_bound = 0; + rsc_disk_bound = 0; project = NULL; app = NULL; avp = NULL; @@ -385,6 +385,7 @@ int RESULT::parse(MIOFILE& in) { if (parse_int(buf, "", app_version_num)) continue; if (parse_double(buf, "", checkpoint_cpu_time)) continue; if (parse_double(buf, "", current_cpu_time)) continue; + if (parse_double(buf, "", elapsed_time)) continue; if (parse_double(buf, "", swap_size)) continue; if (parse_double(buf, "", working_set_size_smoothed)) continue; if (parse_double(buf, "", fraction_done)) continue; @@ -423,6 +424,7 @@ void RESULT::clear() { checkpoint_cpu_time = 0.0; current_cpu_time = 0.0; fraction_done = 0.0; + elapsed_time = -1; swap_size = 0; working_set_size_smoothed = 0; estimated_cpu_time_remaining = 0.0;