Manager: tweaks in task properties

This commit is contained in:
David Anderson 2015-11-13 00:19:37 -08:00
parent 45a27257bf
commit 65cc8461a9
1 changed files with 4 additions and 4 deletions

View File

@ -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) {