- Manager: fix "exclusive GPU app running" message logic.

svn path=/trunk/boinc/; revision=26136
This commit is contained in:
David Anderson 2012-09-21 20:11:10 +00:00
parent f0b331e0d2
commit ea59dd4ff0
2 changed files with 8 additions and 3 deletions

View File

@ -6033,3 +6033,9 @@ David 21 Sept 2012
client/
app.cpp
David 21 Sept 2012
- Manager: fix "exclusive GPU app running" message logic.
clientgui/
MainDocument.cpp

View File

@ -2407,9 +2407,8 @@ wxString suspend_reason_wxstring(int reason) {
}
bool uses_gpu(RESULT* r) {
APP_VERSION* avp = r->avp;
if (!avp) return false;
return (avp->gpu_usage > 0);
// kludge. But r->avp isn't populated.
return (strstr(r->resources, "GPU") != NULL);
}
wxString result_description(RESULT* result, bool show_resources) {