mirror of https://github.com/BOINC/boinc.git
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:
parent
02717af2f3
commit
7787d8ef66
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue