client: Improve code for determining non-BOINC CPU time for branded clients (Mac & Windows)

svn path=/trunk/boinc/; revision=21188
This commit is contained in:
Charlie Fenton 2010-04-15 23:02:13 +00:00
parent 02717af2f3
commit 7787d8ef66
3 changed files with 12 additions and 4 deletions

View File

@ -2826,3 +2826,11 @@ David 15 Apr 2010
gui_rpc_server_ops.cpp
lib/
proxy_info.cpp
Charlie 13 Apr 2010
- client: Improve code for determining non-BOINC CPU time for branded
clients (Mac & Windows).
lib/
procinfo_mac.cpp
procinfo_win.cpp

View File

@ -128,12 +128,12 @@ int procinfo_setup(vector<PROCINFO>& pi) {
switch (iBrandID) {
case GRIDREPUBLIC_BRAND_ID:
if (strcasestr(p.command, "GridRepublic")) {
if (!strcmp(p.command, "GridRepublic Desktop")) {
p.is_boinc_app = true;
}
break;
case PROGRESSTHRUPROCESSORS_BRAND_ID:
if (strcasestr(p.command, "Progress Thru Processors")) {
if (!strcmp(p.command, "Progress Thru Processors Desktop")) {
p.is_boinc_app = true;
}
break;

View File

@ -106,12 +106,12 @@ int get_procinfo_XP(vector<PROCINFO>& pi) {
p.is_boinc_app = (p.id == pid) || (strcasestr(p.command, "boinc") != NULL);
#ifdef _GRIDREPUBLIC
if (strcasestr(p.command, "gridrepublic") != NULL) {
if (!strcmp(p.command, "gridrepublic.exe") {
p.is_boinc_app = true;
}
#endif
#ifdef _PROGRESSTHRUPROCESSORS
if (strcasestr(p.command, "progressthruprocessors") != NULL) {
if (!strcmp(p.command, "progressthruprocessors.exe") {
p.is_boinc_app = true;
}
#endif