From 65cc8461a9bb54f71a2a51982664317a44d11707 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 13 Nov 2015 00:19:37 -0800 Subject: [PATCH] Manager: tweaks in task properties --- clientgui/DlgItemProperties.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clientgui/DlgItemProperties.cpp b/clientgui/DlgItemProperties.cpp index cdcdcd8f12..538a1ef3b0 100644 --- a/clientgui/DlgItemProperties.cpp +++ b/clientgui/DlgItemProperties.cpp @@ -393,7 +393,7 @@ void CDlgItemProperties::renderInfos(RESULT* result) { addProperty(_("Elapsed time"), FormatTime(result->elapsed_time)); } addProperty(_("Estimated time remaining"), FormatTime(result->estimated_cpu_time_remaining)); - addProperty(_("Fraction done"), wxString::Format(wxT("%.3f %%"), result->fraction_done*100)); + addProperty(_("Fraction done"), wxString::Format(wxT("%.3f%%"), result->fraction_done*100)); addProperty(_("Virtual memory size"), FormatDiskSpace(result->swap_size)); addProperty(_("Working set size"), FormatDiskSpace(result->working_set_size_smoothed)); if (result->slot >= 0) { @@ -406,11 +406,11 @@ void CDlgItemProperties::renderInfos(RESULT* result) { // express rate in the largest time unit (hr/min/sec) for which rate < 100% // if (result->progress_rate*3600 < 1) { - addProperty(_("Progress rate"), wxString::Format(wxT("%f %% %s"), 100*3600*result->progress_rate, _("per hour"))); + addProperty(_("Progress rate"), wxString::Format(wxT("%.3f%% %s"), 100*3600*result->progress_rate, _("per hour"))); } else if (result->progress_rate*60 < 1) { - addProperty(_("Progress rate"), wxString::Format(wxT("%f %% %s"), 100*60*result->progress_rate, _("per minute"))); + addProperty(_("Progress rate"), wxString::Format(wxT("%.3f%% %s"), 100*60*result->progress_rate, _("per minute"))); } else { - addProperty(_("Progress rate"), wxString::Format(wxT("%f %% %s"), 100*result->progress_rate, _("per second"))); + addProperty(_("Progress rate"), wxString::Format(wxT("%.3f%% %s"), 100*result->progress_rate, _("per second"))); } } } else if (result->state >= RESULT_COMPUTE_ERROR) {