- client/manager: don't show resource usage for non-CPU-intensive jobs

svn path=/trunk/boinc/; revision=23549
This commit is contained in:
David Anderson 2011-05-14 04:08:12 +00:00
parent d77468cf1d
commit 61d9c06771
3 changed files with 10 additions and 2 deletions

View File

@ -2978,3 +2978,11 @@ David 13 May 2011
sched/
sched_send.cpp
sched_limit.h
David 13 May 2011
- client/manager: don't show resource usage for non-CPU-intensive jobs
client/
client_types.cpp
clientgui/
MainDocument.cpp

View File

@ -1955,7 +1955,7 @@ int RESULT::write_gui(MIOFILE& out) {
sprintf(resources, "%.2f CPUs + %s GPU (missing)",
avp->avg_ncpus, avp->missing_coproc_name
);
} else if (avp->avg_ncpus != 1) {
} else if (!project->non_cpu_intensive && (avp->avg_ncpus != 1)) {
sprintf(resources, "%.2f CPUs", avp->avg_ncpus);
} else {
strcpy(resources, " ");

View File

@ -2462,7 +2462,7 @@ wxString result_description(RESULT* result, bool show_resources) {
} else if (result->scheduler_state == CPU_SCHED_UNINITIALIZED) {
strBuffer += _("Ready to start");
}
if (strlen(result->resources) && show_resources) {
if (strlen(result->resources)>1 && show_resources) {
strBuffer += wxString(wxT(" (")) + wxString(result->resources, wxConvUTF8) + wxString(wxT(")"));
}
} else {