- manager: show app speed and task FLOPs estimate in task Properties

svn path=/trunk/boinc/; revision=22625
This commit is contained in:
David Anderson 2010-11-04 22:15:04 +00:00
parent 789f0b67fc
commit 96d3523155
2 changed files with 28 additions and 7 deletions

View File

@ -7653,13 +7653,13 @@ David 29 Oct 2010
login_action.php
David 29 Oct 2010
- client and manager: fix notice titles
- code cleanup: please use standard coding conventions
- client and manager: fix notice titles
- code cleanup: please use standard coding conventions
client/
client_msgs.cpp
clientgui/
NoticeListCtrl.cpp
client/
client_msgs.cpp
clientgui/
NoticeListCtrl.cpp
David 29 Oct 2010
- client: small initial checkin for new scheduling system.
@ -7840,3 +7840,9 @@ David 04 Nov 2010
lib/
gui_rpc_client_ops.cpp
gui_rpc_client.h
David 04 Nov 2010
- manager: show app speed and task FLOPs estimate in task Properties
clientgui/
DlgItemProperties.cpp

View File

@ -278,12 +278,21 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
// show task properties
//
void CDlgItemProperties::renderInfos(RESULT* result) {
CMainDocument* pDoc = wxGetApp().GetDocument();
wxDateTime dt;
wxString wxTitle = _("Properties of task ");
wxTitle.append(wxString(result->name, wxConvUTF8));
SetTitle(wxTitle);
addProperty(_("Application"), FormatApplicationName(result));
APP_VERSION* avp = NULL;
WORKUNIT* wup = NULL;
RESULT* r = pDoc->state.lookup_result(result->project_url, result->name);
if (r) {
avp = r->avp;
wup = r->wup;
}
addProperty(_("Application"), FormatApplicationName(result));
addProperty(_("Workunit name"),wxString(result->wu_name, wxConvUTF8));
addProperty(_("State"), result_description(result));
if (result->received_time) {
@ -295,6 +304,12 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
if (strlen(result->resources)) {
addProperty(_("Resources"), wxString(result->resources, wxConvUTF8));
}
if (avp) {
addProperty(_("Estimated app speed"), wxString::Format(wxT("%.2f GFLOPs/sec"), avp->flops/1e9));
}
if (wup) {
addProperty(_("Estimated task size"), wxString::Format(wxT("%.0f GFLOPs"), wup->rsc_fpops_est/1e9));
}
if (result->active_task) {
addProperty(_("CPU time at last checkpoint"), FormatTime(result->checkpoint_cpu_time));
addProperty(_("CPU time"), FormatTime(result->current_cpu_time));