Manager: use thousands-separator formatting in a couple of places

This commit is contained in:
David Anderson 2015-11-06 22:35:58 -08:00
parent 70637038da
commit c863f2b27a
2 changed files with 3 additions and 3 deletions

View File

@ -313,7 +313,7 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
if (!project->non_cpu_intensive) {
addSection(_("Scheduling"));
addProperty(_("Scheduling priority"), wxString::Format(wxT("%0.2f"), project->sched_priority));
addProperty(_("Scheduling priority"), format_number(project->sched_priority, 2));
show_rsc(_("CPU"), project->rsc_desc_cpu);
if (pDoc->state.host_info.coprocs.have_nvidia()) {
show_rsc(

View File

@ -1125,8 +1125,8 @@ void CViewProjects::GetDocResourcePercent(wxInt32 item, double& fBuffer) const {
}
wxInt32 CViewProjects::FormatResourceShare(double fBuffer, double fBufferPercent, wxString& strBuffer) const {
strBuffer.Printf(wxT("%0.0f (%0.2f%%)"), fBuffer, fBufferPercent);
wxInt32 CViewProjects::FormatResourceShare(double share, double share_pct, wxString& strBuffer) const {
strBuffer.Printf(wxT("%s (%s%%)"), format_number(share, 0), format_number(share_pct, 2));
return 0;
}