mirror of https://github.com/BOINC/boinc.git
- wrapper: fix bug that reported wildly wrong CPU time
svn path=/trunk/boinc/; revision=25457
This commit is contained in:
parent
64210d0420
commit
9a77dcc71f
|
@ -2793,3 +2793,9 @@ David 19 Mar 2011
|
|||
|
||||
lib/
|
||||
procinfo.cpp
|
||||
|
||||
David 19 Mar 2011
|
||||
- wrapper: fix bug that reported wildly wrong CPU time
|
||||
|
||||
lib/
|
||||
procinfo.cpp
|
||||
|
|
|
@ -154,6 +154,7 @@ double process_tree_cpu_time(int pid) {
|
|||
retval = procinfo_setup(pm);
|
||||
if (retval) return 0;
|
||||
|
||||
pi.clear();
|
||||
pi.id = pid;
|
||||
procinfo_app(pi, NULL, pm, NULL);
|
||||
return pi.user_time + pi.kernel_time;
|
||||
|
|
Loading…
Reference in New Issue