- client: don't include graphics apps in non-BOINC CPU time (Unix).

svn path=/trunk/boinc/; revision=21133
This commit is contained in:
David Anderson 2010-04-07 16:04:36 +00:00
parent 8e7f5082e2
commit 2d7fdacba8
3 changed files with 16 additions and 3 deletions

View File

@ -2583,4 +2583,9 @@ Charlie 7 Apr 2010
lib/
procinfo_mac.cpp
David 7 Apr 2010
- client: don't include graphics apps in non-BOINC CPU time (Unix).
lib/
procinfo_win.cpp
procinfo_unix.cpp

View File

@ -282,7 +282,9 @@ void add_child_totals(PROCINFO& pi, vector<PROCINFO>& piv, int pid, int rlvl) {
// fill in the given PROCINFO (which initially is zero except for id)
// with totals from that process and all its descendants
//
void procinfo_app(PROCINFO& pi, vector<PROCINFO>& piv) {
void procinfo_app(
PROCINFO& pi, vector<PROCINFO>& piv, char* graphics_exec_file
) {
unsigned int i;
for (i=0; i<piv.size(); i++) {
@ -299,6 +301,9 @@ void procinfo_app(PROCINFO& pi, vector<PROCINFO>& piv) {
add_child_totals(pi, piv, pi.id, 0);
return;
}
if (!strcmp(p.command, graphics_exec_file)) {
p.is_boinc_app = true;
}
}
}

View File

@ -137,7 +137,10 @@ int procinfo_setup(vector<PROCINFO>& pi) {
// scan the process table from the given point,
// adding in CPU time and mem usage
//
void add_proc_totals(PROCINFO& pi, vector<PROCINFO>& piv, int pid, char* graphics_exec_file, int start) {
void add_proc_totals(
PROCINFO& pi, vector<PROCINFO>& piv, int pid,
char* graphics_exec_file, int start
) {
unsigned int i;
for (i=start; i<piv.size(); i++) {
PROCINFO& p = piv[i];