mirror of https://github.com/BOINC/boinc.git
- client: don't include graphics apps in non-BOINC CPU time (Unix).
svn path=/trunk/boinc/; revision=21133
This commit is contained in:
parent
8e7f5082e2
commit
2d7fdacba8
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue