mirror of https://github.com/BOINC/boinc.git
Manager: use thousands-separator formatting in a couple of places
This commit is contained in:
parent
70637038da
commit
c863f2b27a
|
@ -313,7 +313,7 @@ void CDlgItemProperties::renderInfos(PROJECT* project_in) {
|
||||||
|
|
||||||
if (!project->non_cpu_intensive) {
|
if (!project->non_cpu_intensive) {
|
||||||
addSection(_("Scheduling"));
|
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);
|
show_rsc(_("CPU"), project->rsc_desc_cpu);
|
||||||
if (pDoc->state.host_info.coprocs.have_nvidia()) {
|
if (pDoc->state.host_info.coprocs.have_nvidia()) {
|
||||||
show_rsc(
|
show_rsc(
|
||||||
|
|
|
@ -1125,8 +1125,8 @@ void CViewProjects::GetDocResourcePercent(wxInt32 item, double& fBuffer) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wxInt32 CViewProjects::FormatResourceShare(double fBuffer, double fBufferPercent, wxString& strBuffer) const {
|
wxInt32 CViewProjects::FormatResourceShare(double share, double share_pct, wxString& strBuffer) const {
|
||||||
strBuffer.Printf(wxT("%0.0f (%0.2f%%)"), fBuffer, fBufferPercent);
|
strBuffer.Printf(wxT("%s (%s%%)"), format_number(share, 0), format_number(share_pct, 2));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue