Manager: if a job has keywords, show them in task properties

This commit is contained in:
David Anderson 2017-07-30 14:10:38 -07:00
parent d15d0b95de
commit e8d0453d47
2 changed files with 18 additions and 0 deletions

View File

@ -393,6 +393,22 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
addProperty(_("Estimated computation size"),
wxString::Format(wxT("%s GFLOPs"), format_number(wup->rsc_fpops_est/1e9, 0))
);
if (!wup->job_keywords.empty()) {
bool first = true;
std::string buf;
for (unsigned int i=0; i<wup->job_keywords.keywords.size(); i++) {
KEYWORD& kw = wup->job_keywords.keywords[i];
if (first) {
first = false;
} else {
buf += std::string(", ");
}
buf += kw.name;
}
addProperty(_("Keywords"),
wxString(buf.c_str(), wxConvUTF8)
);
}
}
if (result->active_task) {
addProperty(_("CPU time"), FormatTime(result->current_cpu_time));

View File

@ -324,6 +324,7 @@
<ClCompile Include="..\lib\filesys.cpp" />
<ClCompile Include="..\lib\hostinfo.cpp" />
<ClCompile Include="..\lib\idlemon_win.cpp" />
<ClCompile Include="..\lib\keyword.cpp" />
<ClCompile Include="..\lib\md5.cpp" />
<ClCompile Include="..\lib\md5_file.cpp" />
<ClCompile Include="..\lib\mfile.cpp" />
@ -432,6 +433,7 @@
<ClInclude Include="..\lib\filesys.h" />
<ClInclude Include="..\lib\hostinfo.h" />
<ClInclude Include="..\lib\idlemon.h" />
<ClInclude Include="..\lib\keyword.h" />
<ClInclude Include="..\lib\md5.h" />
<ClInclude Include="..\lib\md5_file.h" />
<ClInclude Include="..\lib\mfile.h" />