mirror of https://github.com/BOINC/boinc.git
- 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:
parent
5fe3a6d8e9
commit
143d03e318
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue