code tweak

svn path=/trunk/boinc/; revision=26004
This commit is contained in:
David Anderson 2012-08-10 19:54:17 +00:00
parent 9fa75d5044
commit 294ffea97a
1 changed files with 8 additions and 2 deletions

View File

@ -269,10 +269,16 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
addProperty(_("Scheduling priority"), wxString::Format(wxT("%0.2f"), project->sched_priority));
show_rsc(_("CPU"), project->rsc_desc_cpu);
if (pDoc->state.have_nvidia) {
show_rsc(wxString(proc_type_name(PROC_TYPE_NVIDIA_GPU), wxConvUTF8), project->rsc_desc_nvidia);
show_rsc(
wxString(proc_type_name(PROC_TYPE_NVIDIA_GPU), wxConvUTF8),
project->rsc_desc_nvidia
);
}
if (pDoc->state.have_ati) {
show_rsc(wxString(proc_type_name(PROC_TYPE_AMD_GPU), wxConvUTF8), project->rsc_desc_ati);
show_rsc(
wxString(proc_type_name(PROC_TYPE_AMD_GPU), wxConvUTF8),
project->rsc_desc_ati
);
}
addProperty(_("Duration correction factor"), wxString::Format(wxT("%0.4f"), project->duration_correction_factor));
}