diff --git a/clientgui/DlgItemProperties.cpp b/clientgui/DlgItemProperties.cpp index e5508ddbda..efbea6fb3e 100644 --- a/clientgui/DlgItemProperties.cpp +++ b/clientgui/DlgItemProperties.cpp @@ -392,6 +392,17 @@ void CDlgItemProperties::renderInfos(RESULT* result) { if (result->pid) { addProperty(_("Process ID"), wxString::Format(wxT("%d"), result->pid)); } + if (result->progress_rate) { + // 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 %% per hour"), 100*3600*result->progress_rate)); + } else if (result->progress_rate*60 < 1) { + addProperty("Progress rate", wxString::Format(wxT("%f %% per minute"), 100*60*result->progress_rate)); + } else { + addProperty("Progress rate", wxString::Format(wxT("%f %% per second"), 100*result->progress_rate)); + } + } } else if (result->state >= RESULT_COMPUTE_ERROR) { addProperty(_("CPU time"), FormatTime(result->final_cpu_time)); addProperty(_("Elapsed time"), FormatTime(result->final_elapsed_time));