- client: in computing non-BOINC CPU time,

exclude any process whose executable includes "boinc", case-insensitive.
    Fix problem with BoincTasks.exe

svn path=/trunk/boinc/; revision=20910
This commit is contained in:
David Anderson 2010-03-15 23:28:23 +00:00
parent 5fe3a6d8e9
commit 143d03e318
3 changed files with 12 additions and 3 deletions

View File

@ -1947,3 +1947,12 @@ David 12 Mar 2010
gui_rpc_client_print.cpp
gui_rpc_client_ops.cpp
gui_rpc_client.h
David 15 Mar 2010
- client: in computing non-BOINC CPU time,
exclude any process whose executable includes "boinc", case-insensitive.
Fix problem with BoincTasks.exe
lib/
procinfo_unix.cpp
procinfo_win.cpp

View File

@ -206,7 +206,7 @@ int procinfo_setup(vector<PROCINFO>& pi) {
p.page_fault_count = prusage.pr_majf + prusage.pr_minf;
}
fclose(fd);
p.is_boinc_app = (p.id == pid || strstr(p.command, "boinc"));
p.is_boinc_app = (p.id == pid || strcasestr(p.command, "boinc"));
pi.push_back(p);
}
}
@ -231,7 +231,7 @@ int procinfo_setup(vector<PROCINFO>& pi) {
p.user_time = ps.utime / 100.;
p.kernel_time = ps.stime / 100.;
strlcpy(p.command, ps.comm, sizeof(p.command));
p.is_boinc_app = (p.id == pid || strstr(p.command, "boinc"));
p.is_boinc_app = (p.id == pid || strcasestr(p.command, "boinc"));
pi.push_back(p);
}
#endif

View File

@ -102,7 +102,7 @@ int get_procinfo_XP(vector<PROCINFO>& pi) {
sizeof(p.command),
NULL, NULL
);
p.is_boinc_app = (p.id == pid) || (strstr(p.command, "boinc") != NULL);
p.is_boinc_app = (p.id == pid) || (strcasestr(p.command, "boinc") != NULL);
pi.push_back(p);
if (!pProcesses->NextEntryDelta) {
break;